DSP

uclinux-2008R1-RC8(bf561)到VDSP5的移植(60): current_t

2019-07-13 16:48发布

  快乐虾 http://blog.csdn.net/lights_joy/ lights@hb165.com      本文适用于 ADI bf561 DSP 优视BF561EVB开发板 uclinux-2008r1-rc8 (移植到vdsp5) Visual DSP++ 5.0    欢迎转载但请保留作者信息   include/asm/processor.h中有这样一个定义: /*  * Default implementation of macro that returns current  * instruction pointer ("program counter").  */ #define current_text_addr() ({ __label__ _l; _l: &&_l;}) 它的作用就是取当前PC的值,但是这行语句在VDSP下会引起一个错误: ../../security/commoncap.c "../../include/linux/skbuff.h", line 897: cc1454:  error: taking the address           of a label is not a supported feature   skb_over_panic(skb, len, current_text_addr());                            ^   "../../include/linux/skbuff.h", line 922: cc1454:  error: taking the address           of a label is not a supported feature   skb_under_panic(skb, len, current_text_addr());                             ^   2 errors detected in the compilation of "../../security/commoncap.c". cc3089: fatal error: Compilation failed Tool failed with exit/exception code: 1. Build was unsuccessful. 对其做如下修改: static inline unsigned long current_text_addr(void) {      unsigned long pc;        __asm__ __volatile__("%0 = rets;/n/t":"=d"(pc));      return pc; }    

参考文章

uclinux-2008R1-RC8(bf561)VDSP5的移植(1):前言(2008/4/29) uclinux-2008R1-RC8(bf561)VDSP5的移植(2):代码注释(2008/4/29) uclinux-2008R1-RC8(bf561)VDSP5的移植(3):Head.s(2008/4/29)  uclinux-2008R1-RC8(bf561)VDSP5的移植(4):使用head.s做为入口点(2008/4/29) uclinux-2008R1-RC8(bf561)VDSP5的移植(5):CONFIG_BANK_x(2008/4/29) uclinux-2008R1-RC8(bf561)VDSP5的移植(6):__bss_start(2008/4/29) uclinux-2008R1-RC8(bf561)VDSP5的移植(7):_sdata(2008/4/30) uclinux-2008R1-RC8(bf561)VDSP5的移植(8):_stext(2008/4/30) uclinux-2008R1-RC8(bf561)VDSP5的移植(9):bf53x_relocate_l1_mem(2008/4/30) uclinux-2008R1-RC8(bf561)VDSP5的移植(10):编译器配置(2008/5/3) uclinux-2008R1-RC8(bf561)VDSP5的移植(11):cmdline_init(2008/5/4) uclinux-2008R1-RC8(bf561)VDSP5的移植(12):init_thread_union(2008/5/4) uclinux-2008R1-RC8(bf561)VDSP5的移植(13):未命名union的问题(2008/5/4) uclinux-2008R1-RC8(bf561)VDSP5的移植(14):segment(2008/5/4) uclinux-2008R1-RC8(bf561)VDSP5的移植(15):WARN()(2008/5/4) uclinux-2008R1-RC8(bf561)VDSP5的移植(16)start_kernel(2008/5/4) uclinux-2008R1-RC8(bf561)VDSP5的移植(17).l1.text(2008/5/4) uclinux-2008R1-RC8(bf561)VDSP5的移植(18).init.text.init.data(2008/5/4) uclinux-2008R1-RC8(bf561)VDSP5的移植(19)li2040(2008/5/5) uclinux-2008R1-RC8(bf561)VDSP5的移植(20):远调用(2008/5/5) uclinux-2008R1-RC8(bf561)VDSP5的移植(21)_mc_data_initialise(2008/5/5) uclinux-2008R1-RC8(bf561)VDSP5的移植(22)spinlock_types.h(2008/5/5) uclinux-2008R1-RC8(bf561)VDSP5的移植(23)spinlock.h(2008/5/5) uclinux-2008R1-RC8(bf561)VDSP5的移植(24)CONFIG_NR_CPUS(2008/5/5) uclinux-2008R1-RC8(bf561)VDSP5的移植(25)smp.h(2008/5/5) uclinux-2008R1-RC8(bf561)VDSP5的移植(26)smp_processor_id(2008/5/5) uclinux-2008R1-RC8(bf561)VDSP5的移植(27)cpumask_t(2008/5/6) uclinux-2008R1-RC8(bf561)VDSP5的移植(28)likely(2008/5/6) uclinux-2008R1-RC8(bf561)VDSP5的移植(29)spinlock(2008/5/6) uclinux-2008R1-RC8(bf561)VDSP5的移植(30)atomic_t(2008/5/8) __builtin_constant_p(2008/5/8) uclinux-2008R1-RC8(bf561)VDSP5的移植(32)cdefbf561.h(2008/5/8) uclinux-2008R1-RC8(bf561)VDSP5的移植(33)__ebss_l1(2008/5/14) uclinux-2008R1-RC8(bf561)VDSP5的移植(34).rept(2008/5/14) uclinux-2008R1-RC8(bf561)VDSP5的移植(35)ARRAY_SIZE(2008/5/15) uclinux-2008R1-RC8(bf561)VDSP5的移植(36)__per_cpu_start(2008/5/19) uclinux-2008R1-RC8(bf561)VDSP5的移植(37)_cplb_mgr(2008/5/20) uclinux-2008R1-RC8(bf561)VDSP5的移植38):cachespinlock(2008/5/21) uclinux-2008R1-RC8(bf561)VDSP5的移植39):链接重排(2008/5/21) uclinux-2008R1-RC8(bf561)VDSP5的移植40):中断优先级(2008/5/22) uclinux-2008R1-RC8(bf561)VDSP5的移植(41)PLL造成的困扰(2008/6/3) uclinux-2008R1-RC8(bf561)VDSP5的移植(42)__bad_size的问题(2008/6/20) uclinux-2008R1-RC8(bf561)VDSP5的移植(43)__builtin_return_address的问题(2008/6/23) uclinux-2008R1-RC8(bf561)VDSP5的移植(44)kmallockzalloc的问题(2008/6/23) uclinux-2008R1-RC8(bf561)VDSP5的移植(45)__delay(2008/6/24) uclinux-2008R1-RC8(bf561)VDSP5的移植(46): raw_rwlock_t(2008/6/25) uclinux-2008R1-RC8(bf561)VDSP5的移植(47): d_alloc引出的问题(2008/6/27) uclinux-2008R1-RC8(bf561)VDSP5的移植(48): __cmpxchg的问题(2008/6/30) uclinux-2008R1-RC8(bf561)VDSP5的移植(49)kernel_thread_helper的问题(2008/7/2) uclinux-2008R1-RC8(bf561)VDSP5的移植(50)jiffies_64的定义问题(2008/7/2) uclinux-2008R1-RC8(bf561)VDSP5的移植(51)fork.c编译失败(2008/7/3) uclinux-2008R1-RC8(bf561)VDSP5的移植(52)cache.s的问题(2008/7/7) uclinux-2008R1-RC8(bf561)VDSP5的移植(53)reboot.c的问题(2008/7/8) uclinux-2008R1-RC8(bf561)VDSP5的移植(54): initramfs的问题(2008/7/8) uclinux-2008R1-RC8(bf561)VDSP5的移植(55): filemap.c的问题(2008/7/9) uclinux-2008R1-RC8(bf561)VDSP5的移植(56): __grab_cache_page(2008/7/10) uclinux-2008R1-RC8(bf561)VDSP5的移植(57): _NSIG_WORDS_is_unsupported_size(2008/7/11) uclinux-2008R1-RC8(bf561)VDSP5的移植(58): unable to open an initial console(2008/7/17) uclinux-2008R1-RC8(bf561)VDSP5的移植(59): Milestone:内核成功启动(2008/7/18)