Timer's Bug solved the linux use of Timer4

Source: Internet
Author: User
Timer's Bug solved linux's use of Timer4-general Linux technology-Linux programming and kernel information. The following is a detailed description. When I wrote the PWM driver last week, I encountered a problem. After Timer initialization, the console could not accept keyboard input. The execution of the program itself was not affected, but it was just the end of the process, pressing ctrl + c does not respond. after thinking about it, I finally thought about where I wrote the console, as if I was using a timer for timing or something, so I went online to find information.

After searching for half a day, I finally found a person in china linux forum who encountered the same problem as me. According to him, linux uses Timer4, but the specific purpose is not clearly explained, I am still not familiar with the kernel, so the problem is gone. however, my problem has been solved. in fact, it was because of the rush of time that the program was too crude to overwrite the value of the entire TCON register. even if I do not know that linux will occupy a timer, it will not be a problem if I only change the Timer-related part of the register.

The next step is to compile the 2.6 kernel, hoping to have a new understanding of the entire system, especially the file system.
Related Article

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.