arch/arm/cpu/cpu.c File Reference


Detailed Description


Functions

int icache_status (void)
int cleanup_before_linux (void)


Define Documentation

#define C1_ALIGN   (1<<1)

alignment faults off/on

#define C1_BIG_ENDIAN   (1<<7)

big endian off/on

#define C1_DC   (1<<2)

dcache off/on

#define C1_HIGH_VECTORS   (1<<13)

location of vectors: low/high addresses

#define C1_IC   (1<<12)

icache off/on

Referenced by icache_disable(), icache_enable(), and icache_status().

#define C1_MMU   (1<<0)

mmu off/on

#define C1_ROM_PROT   (1<<9)

ROM protection.

#define C1_SYS_PROT   (1<<8)

system protection


Function Documentation

int cleanup_before_linux ( void   ) 

Prepare a "clean" CPU for Linux to run.

Returns:
0 (always)
This function is called by the generic barebox part just before we call Linux. It prepares the processor for Linux.

void icache_disable ( void   ) 

Disable processor's instruction cache.

void icache_enable ( void   ) 

Enable processor's instruction cache.

Referenced by cleanup_before_linux().

int icache_status ( void   ) 

Detect processor's current instruction cache status.

Returns:
0=disabled, 1=enabled


Generated on Fri Dec 25 14:13:14 2009 for barebox by  doxygen 1.5.6