Uclinux-2008r1-rc8 (bf561) to VDSP5 Transplantation (m): a definition of jiffies_64

Source: Internet
Author: User

In Uclinux, Jiffies_64 's declaration is:

#define __jiffy_data __attribute__((section(".data")))
extern u64 __jiffy_data jiffies_64;

It is defined in KERNEL/TIMER.C:

U64 __jiffy_data jiffies_64 __cacheline_aligned_in_smp = initial_jiffies;

This definition does not seem to be a problem, but when compiling kernel/timer.c, it creates a very strange error, and the error message is:

[Error ea1008] "e:/temp/acc08143dff000/acc08143dff001.s":3601 '.epcdata':
The symbol has already been defined and cannot be redefined.
[Error ea1008] "e:/temp/acc08143dff000/acc08143dff001.s":3608 '.epcdata.end':
The symbol has already been defined and cannot be redefined.

But if you change the definition to:

extern u64 /*__jiffy_data*/ jiffies_64;
u64 /*__jiffy_data*/ jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;

There is no problem.

Guess this has to do with U64 this type of data.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.