View Single Post
Posts: 7 | Thanked: 0 times | Joined on Mar 2010
#1
Hello!

I am unsure if this topic should be in the N800 forum or the Diablo forum, but it is kind of hardware/assembler related.

I am writing some software where I need to do lots of optimized copying between byte pointers. In quite a few places, I could really benefit from being able to use the ldr instruction instead of the ldrb, but this is currently not possible since the reads/writes are not always word aligned. I know that the N800 supports unaligned word addressing if the U-bit in th CP15 is set, but it does not seem to be enabled on my N800. Since the CP15 can only be modified in priviliged mode, I assume that I will have to set this when compiling the kernel. I have however not been able to find any settings for this.

Any tips? Unaligned memory access would speed up my code quite a lot which is crucial.

Best regards,
//Leo