My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
cpu.c File Reference
#include <cache.h>
#include <cpu.h>

Functions

void icache_enable (void)
 enable instruction cache More...
 
void icache_disable (void)
 disable instruction cache More...
 
void dcache_enable (void)
 enable data cache More...
 
void dcache_disable (void)
 disable data cache More...
 
void enable_l1_cache (void)
 enable level 1 cache More...
 
void disable_l1_cache (void)
 disable level 1 cache More...
 
void clear_data_cache (void)
 clean and invalidate the data cache More...
 
irq_flags_t cpu_irq_save (void)
 saves interrupt request More...
 
void cpu_irq_restore (irq_flags_t flags)
 restores the interrupt request More...
 
void cpu_wait_for_irq (void)
 
u32 get_cpuid (void)
 cpu id is found and returned More...
 
void enable_branch_prediction (void)
 branch prediction is enabled More...
 
void arm_irq_enable (void)
 enable interrupt request More...
 
void arm_irq_disable (void)
 disable interrupt request More...
 
void data_memory_barrier (void)
 calls the data memory barrier instruction More...
 
void data_sync_barrier (void)
 calls the data synchronization barrier instruction More...
 
void instruction_sync_barrier (void)
 calls the instruction synchronization barrier instruction More...
 

Function Documentation

void arm_irq_disable ( void  )

disable interrupt request

void arm_irq_enable ( void  )

enable interrupt request

void clear_data_cache ( void  )

clean and invalidate the data cache

void cpu_irq_restore ( irq_flags_t  flags)

restores the interrupt request

Parameters
flags
irq_flags_t cpu_irq_save ( void  )

saves interrupt request

Returns
void cpu_wait_for_irq ( void  )
void data_memory_barrier ( void  )

calls the data memory barrier instruction

void data_sync_barrier ( void  )

calls the data synchronization barrier instruction

void dcache_disable ( void  )

disable data cache

void dcache_enable ( void  )

enable data cache

void disable_l1_cache ( void  )

disable level 1 cache

void enable_branch_prediction ( void  )

branch prediction is enabled

void enable_l1_cache ( void  )

enable level 1 cache

u32 get_cpuid ( void  )

cpu id is found and returned

Returns
void icache_disable ( void  )

disable instruction cache

void icache_enable ( void  )

enable instruction cache

void instruction_sync_barrier ( void  )

calls the instruction synchronization barrier instruction