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
Would be ported to GNU:
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?