AnsweredAssumed Answered

How to port VDSP asm L1_data_b?

Question asked by illishar on Aug 9, 2013
Latest reply on Aug 21, 2013 by illishar

Hello,

 

I'm trying to port some VDSP asm code to Linux.

I have a some of my data placed in .section L1_data_b. How do I port this to Linux?

 

Eg. this VDSP code

=======================================

.section L1_data_b;

.align 8;

.byte4 _my_array[3];

=======================================

 

Would be ported to GNU:

=======================================

.section L1_data_b;

.align 8;

_my_array:

.space 3*4;

=======================================

 

And this also compiles fine in my user space program. But if I run it, the Linux will crash. If I change it to .section data, the program runs fine. (But .section .data is not L1_data_b.)

 

I see from this page: http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:example_on-chip_sram

That there are ways to put data into L1_data_b, if you're doing kernel c code.

How do I do it with asm? Should I just compile it as kernel code instead of user space? Or how do I port the above code?

Outcomes