Part3_lesson4---coprocessor access instructions

Source: Internet
Author: User

1. What is a coprocessor?

CP15 is a coprocessor,

CP15: System control coprocessor CP15, which provides additional registers for configuration and control of Cache,mmu, protection system, clock mode, and other system items such as size and end operations.

How do I access the CP15 coprocessor?

The registers defined in the CP15 can be accessed to reach the CP15, which can be ordered by the MCR and MRC instructions.

The CP15 defines 16 sets of registers,

You can go to the ARM1176JZFS file's system control processor registers this section to see the information.

Two commands to access the coprocessor MCR and MRC

R represents the universal register, and C represents the coprocessor.

The MCR means to copy the contents of R into C, and the MRC instead.

such as access: Read the main ID register

MRC p15,0,r0,c0,c0,0

Part3_lesson4---coprocessor access instructions

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.