From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Bykowski Date: Wed, 19 Aug 2020 15:17:24 +0200 Subject: [PATCHv2] armv8: MMU: Mark code memory Executable, any other Non-Executable In-Reply-To: <20200722125110.GM6227@bill-the-cat> References: <20200619112409.27523-1-marek.bykowski@gmail.com> <20200619125332.27726-1-marek.bykowski@gmail.com> <20200718153400.GM6227@bill-the-cat> <20200722125110.GM6227@bill-the-cat> Message-ID: <20200819131723.GA2195@marek-VirtualBox> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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