This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Self Modifying Code on the ARM1176JZF-S (raspberry pi)

Note: This was originally posted on 6th April 2013 at http://forums.arm.com

Hello
I'm trying to write some Self modifying code (SMC) to run on my raspberry pi and I've been reading a few things and am slightly confused.
  • [size=2]From what I understand, ARMv6-M is thumb2 only (i.e. always in thumb mode)  So if I want to write SMC, it has to be in thumb 2? (despite the 1176JZF-S? being able to run both arm and thumb?)
    [/size]
  • [size=2]Should I use MCRR (and stay in the assembly) or linux's mmap/mprotect/__cache__clear (in the OS) for cache coherence?

    Currently, I just keep getting segmentation faults on my code


    Best
    Sally[/size]
0