7.4. Configuring a PU

To configure a PU, you must do the following:

  1. Define the starting addresses and sizes of protection regions, and enable them. To do this, write to coprocessor register c6 in CP15, the system control coprocessor (see Setting protection region addresses and sizes, and enabling each region).

  2. Set the cacheable and bufferable attributes for each region. To do this, write to CP15 registers c2 and c3 (see Setting region cacheable and bufferable flags).

  3. Set access permissions for each region. To do this, write to CP15 register c5 (see Setting region access permissions).

  4. Enable the caches and enable the PU. To do this, write to CP15 register c1 (see Configuring core operation).

Note

The Pagetable model can do this for you if you are using ARMulator (see Models of caches and tightly coupled memory and the ARMulator Basics chapter in ADS Debug Target Guide).

Note

Details of configuration vary from core to core. See the Technical Reference Manual for your particular core.

The following examples show the general methods of programming. They do not show correct details for every core.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0056D
Non-Confidential