Hi, Please do reply to the list. This list is suppose to help all those who are part of the list. I am bouncing this to davinci mailing list.
To speed up the memcpy operation, the same is written in assembly. Follow the code for the same at $(LINUX_KERNEL_CODE)/ti-davinci/arch/arm/lib/memcpy.S In a similar way you can solve the problem at your hand. Access the array as a pointer and go ahead. If the array is an integer, make sure at increase the pointer by 2 bytes. You need to take care of the increment, if you have an array of structures or array of float, or arraay of pointers. Hope this cue helps. With best regards, Venkat. -- ________________________________________ From: Sandeep Kumar [sande...@verismonetworks.com] Sent: Wednesday, December 17, 2008 11:53 AM To: Venkatachala Upadhya Subject: RE: calling assembly from c and vice-versa Hi Venkatachala Upadhya Thanks for reply Do you know how we can access global arrays from our cassembly code. Thanks and regards Sandeep On Wed, 2008-12-17 at 11:39 +0530, Venkatachala Upadhya wrote: > Hi, > > Your source of information is Linux kernel code for davinci 644x, if you care > to follow it. > > With best regards, > Venkat. > -- > > ________________________________________ > From: davinci-linux-open-source-boun...@linux.davincidsp.com > [davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of Sandeep > Kumar [sande...@verismonetworks.com] > Sent: Wednesday, December 17, 2008 11:33 AM > To: davinci-linux-open-source@linux.davincidsp.com > Subject: calling assembly from c and vice-versa > > Hi Friends > > Can anybody help me out in knowing how to call an assembly function form > c function. How we can pass the arguments from c function to assembly > function and how we will access them in assembly. Further how we can use > inline assembly in our c functions and which registers are free to use > while writing inline assembly without corruption. Any pointer/link from > where i can get this information or any sample code for DM644X. > > Thanks and Regards > Sandeep > > > _______________________________________________ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > > http://www.mindtree.com/email/disclaimer.html > > http://www.mindtree.com/email/disclaimer.html _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source