Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cp15.h File Reference
#include <asm/barrier.h>

Go to the source code of this file.

Macros

#define CR_M   (1 << 0) /* MMU enable */
 
#define CR_A   (1 << 1) /* Alignment abort enable */
 
#define CR_C   (1 << 2) /* Dcache enable */
 
#define CR_W   (1 << 3) /* Write buffer enable */
 
#define CR_P   (1 << 4) /* 32-bit exception handler */
 
#define CR_D   (1 << 5) /* 32-bit data address range */
 
#define CR_L   (1 << 6) /* Implementation defined */
 
#define CR_B   (1 << 7) /* Big endian */
 
#define CR_S   (1 << 8) /* System MMU protection */
 
#define CR_R   (1 << 9) /* ROM MMU protection */
 
#define CR_F   (1 << 10) /* Implementation defined */
 
#define CR_Z   (1 << 11) /* Implementation defined */
 
#define CR_I   (1 << 12) /* Icache enable */
 
#define CR_V   (1 << 13) /* Vectors relocated to 0xffff0000 */
 
#define CR_RR   (1 << 14) /* Round Robin cache replacement */
 
#define CR_L4   (1 << 15) /* LDR pc can set T bit */
 
#define CR_DT   (1 << 16)
 
#define CR_IT   (1 << 18)
 
#define CR_ST   (1 << 19)
 
#define CR_FI   (1 << 21) /* Fast interrupt (lower latency mode) */
 
#define CR_U   (1 << 22) /* Unaligned access operation */
 
#define CR_XP   (1 << 23) /* Extended page tables */
 
#define CR_VE   (1 << 24) /* Vectored interrupts */
 
#define CR_EE   (1 << 25) /* Exception (Big) Endian */
 
#define CR_TRE   (1 << 28) /* TEX remap enable */
 
#define CR_AFE   (1 << 29) /* Access flag enable */
 
#define CR_TE   (1 << 30) /* Thumb exception enable */
 
#define vectors_high()   (0)
 
#define CPACC_FULL(n)   (3 << (n * 2))
 
#define CPACC_SVC(n)   (1 << (n * 2))
 
#define CPACC_DISABLE(n)   (0 << (n * 2))
 

Functions

void adjust_cr (unsigned long mask, unsigned long set)
 

Variables

unsigned long cr_no_alignment
 
unsigned long cr_alignment
 

Macro Definition Documentation

#define CPACC_DISABLE (   n)    (0 << (n * 2))

Definition at line 68 of file cp15.h.

#define CPACC_FULL (   n)    (3 << (n * 2))

Definition at line 66 of file cp15.h.

#define CPACC_SVC (   n)    (1 << (n * 2))

Definition at line 67 of file cp15.h.

#define CR_A   (1 << 1) /* Alignment abort enable */

Definition at line 10 of file cp15.h.

#define CR_AFE   (1 << 29) /* Access flag enable */

Definition at line 34 of file cp15.h.

#define CR_B   (1 << 7) /* Big endian */

Definition at line 16 of file cp15.h.

#define CR_C   (1 << 2) /* Dcache enable */

Definition at line 11 of file cp15.h.

#define CR_D   (1 << 5) /* 32-bit data address range */

Definition at line 14 of file cp15.h.

#define CR_DT   (1 << 16)

Definition at line 25 of file cp15.h.

#define CR_EE   (1 << 25) /* Exception (Big) Endian */

Definition at line 32 of file cp15.h.

#define CR_F   (1 << 10) /* Implementation defined */

Definition at line 19 of file cp15.h.

#define CR_FI   (1 << 21) /* Fast interrupt (lower latency mode) */

Definition at line 28 of file cp15.h.

#define CR_I   (1 << 12) /* Icache enable */

Definition at line 21 of file cp15.h.

#define CR_IT   (1 << 18)

Definition at line 26 of file cp15.h.

#define CR_L   (1 << 6) /* Implementation defined */

Definition at line 15 of file cp15.h.

#define CR_L4   (1 << 15) /* LDR pc can set T bit */

Definition at line 24 of file cp15.h.

#define CR_M   (1 << 0) /* MMU enable */

Definition at line 9 of file cp15.h.

#define CR_P   (1 << 4) /* 32-bit exception handler */

Definition at line 13 of file cp15.h.

#define CR_R   (1 << 9) /* ROM MMU protection */

Definition at line 18 of file cp15.h.

#define CR_RR   (1 << 14) /* Round Robin cache replacement */

Definition at line 23 of file cp15.h.

#define CR_S   (1 << 8) /* System MMU protection */

Definition at line 17 of file cp15.h.

#define CR_ST   (1 << 19)

Definition at line 27 of file cp15.h.

#define CR_TE   (1 << 30) /* Thumb exception enable */

Definition at line 35 of file cp15.h.

#define CR_TRE   (1 << 28) /* TEX remap enable */

Definition at line 33 of file cp15.h.

#define CR_U   (1 << 22) /* Unaligned access operation */

Definition at line 29 of file cp15.h.

#define CR_V   (1 << 13) /* Vectors relocated to 0xffff0000 */

Definition at line 22 of file cp15.h.

#define CR_VE   (1 << 24) /* Vectored interrupts */

Definition at line 31 of file cp15.h.

#define CR_W   (1 << 3) /* Write buffer enable */

Definition at line 12 of file cp15.h.

#define CR_XP   (1 << 23) /* Extended page tables */

Definition at line 30 of file cp15.h.

#define CR_Z   (1 << 11) /* Implementation defined */

Definition at line 20 of file cp15.h.

#define vectors_high ( )    (0)

Definition at line 42 of file cp15.h.

Function Documentation

void adjust_cr ( unsigned long  mask,
unsigned long  set 
)

Definition at line 179 of file mmu.c.

Variable Documentation

unsigned long cr_alignment
unsigned long cr_no_alignment