Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for non-identity MMU mappings? #1

Open
tornewuff opened this issue Nov 10, 2012 · 1 comment
Open

Workaround for non-identity MMU mappings? #1

tornewuff opened this issue Nov 10, 2012 · 1 comment

Comments

@tornewuff
Copy link

This looks really awesome but I can't use it with my application as I'm using the MMU extensively with non-identity mappings.. I read your comment in the README about supporting this by dropping the app into the non-secure mode and arranging to map memory differently but this seems nontrivial.

Would it be sufficient to ensure that the app creates an identity mapping for the IO ports and RAM region that the monitor is using? Looks like the RAM from 0x01000000 and the peripheral region at 0x20000000? (I'll try this at some point when I have time, just thought you might have a better idea for sure)..

@jamieiles
Copy link
Owner

Hi Torne,

On Fri, Nov 09, 2012 at 04:39:47PM -0800, Torne Wuff wrote:

Would it be sufficient to ensure that the app creates an identity
mapping for the IO ports and RAM region that the monitor is using?
Looks like the RAM from 0x01000000 and the peripheral region at
0x20000000? (I'll try this at some point when I have time, just
thought you might have a better idea for sure)..

I think the answer here is - it depends. You'd need the identity
mapping for the peripherals and monitor code so that the exceptions get
handled correctly, but whenever gdb issued a memory access (which is
pretty often for stack frames, breakpoints etc) you'd have to make sure
that the address was correctly mapped at that time.

My plan (when I get time!) is to have the application run in the
non-secure world. There's a cp15 register that allows you to easily
translate from a non-secure world virtual address to physical address so
that could be used for doing all of the normal memory read-writes.

Jamie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants