Segmentation fault whie setting up translation table for small pages in ARMv7 MMU

Utkarsh Rai utkarsh.rai60 at
Sun Jul 26 16:02:51 UTC 2020

On Sun, Jul 26, 2020 at 9:12 PM Hesham Almatary <
hesham.almatary at> wrote:

> On Sun, Jul 26, 2020 at 2:04 PM Utkarsh Rai <utkarsh.rai60 at>
> wrote:
>> Hello,
>> I was facing issues while changing the memory entries for a section. The
>> thread can be viewed here
>> <>. The
>> error is most probably due to the fact that while I change the memory entry
>> of my desired region it ends up changing the memory permission of the
>> entire 1Mb section, which causes fatal errors.
>> To prevent this, I decided to set up translation table entries in
>> small-page format.
> To do so, you need multi-level page tables for 4K pages. I doubt you’ve
> added support to do so.
I agree I am having trouble while setting up the 4K pages statically.

> You also want to make sure that your block of memory isn’t already part of
> an ELF section that is already statically mapped at boot time.

Ok, I will take care of that.

> Unfortunately, during the static initialization of the translation table,
>> the qemu hangs up (I am using Xilinx-zynq BSP). On stepping through the
>> debugger I encounter a segmentation fault.
>> Can someone please point me in the right direction? This is the final
>> issue that I have to resolve before I send my patches.
>> _______________________________________________
>> devel mailing list
>> devel at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the devel mailing list