Reply
Thread Tools
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
 
Posts: 7 | Thanked: 0 times | Joined on Mar 2010
#2
Originally Posted by leob View Post
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
Strike that. It seems that unaligned access is on by default. If anyone knows how to enable or disable it, I would still be interested in knowing though.

//Leo
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#3
through /proc/cpu/ probablt, but I don't remember the syntax.
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:52.