[PATCHv2] armv8: MMU: Mark code memory Executable, any other Non-Executable

Marek Bykowski marek.bykowski at gmail.com
Wed Aug 19 15:17:24 CEST 2020


> I think this will have to wait for you to return from holidays and
> investigate more.  All I know is that the QEMU models are working as
> expected prior to the patch and fail with it.
>
> --
> Tom

>From the esr (Exception Syndrome Register) = 0x9600004F:
- EC (Exception Class) -> it is an exception from data abort
- from ISS (Instruction specific syndrome) -> WnR field set = Abort caused
  by Write (not Read), Data Fault Status Code = Permission fault, third level

It looks like it results as a Write attempted to a read-only region.
Are you sure the tests are devised/designed so that they are not trying to
write to a read-only region?

@Tom
Probably I could send you a patch with debugging in that will print out all
the necessary information before reaching a prompt (or after a command).
Would you agree to apply and run it?

What I'm really looking for is the address map with the attributes. Sth around
it:
EL2N:0x00000000-0x3FD35FFF NP:0x00000000-0x3FD35FFF Normal RW C S XN

Marek


More information about the U-Boot mailing list