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

Hesham Almatary hesham.almatary at cl.cam.ac.uk
Sun Jul 26 15:42:15 UTC 2020


On Sun, Jul 26, 2020 at 2:04 PM Utkarsh Rai <utkarsh.rai60 at gmail.com> wrote:

> Hello,
> I was facing issues while changing the memory entries for a section. The
> thread can be viewed here
> <https://lists.rtems.org/pipermail/devel/2020-July/060884.html>. 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.

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.

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 rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200726/47a7e249/attachment.html>


More information about the devel mailing list