RTEMS CPU Kit with SuperCore  4.11.2
Data Structures | Macros | Typedefs | Functions | Variables
cpu.h File Reference

ARM Architecture Support API. More...

#include <rtems/score/types.h>
#include <rtems/score/arm.h>
Include dependency graph for cpu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Context_Control
 This defines the minimal set of integer and processor state registers that must be saved during a voluntary context switch from one thread to another. More...
 
struct  Context_Control_fp
 This defines the complete set of floating point registers that must be saved during any context switch from one thread to another. More...
 
struct  ARM_VFP_context
 
struct  CPU_Exception_frame
 The set of registers that specifies the complete processor state. More...
 

Macros

#define CPU_INLINE_ENABLE_DISPATCH   TRUE
 
#define CPU_SIMPLE_VECTORED_INTERRUPTS   FALSE
 
#define CPU_HAS_SOFTWARE_INTERRUPT_STACK   FALSE
 
#define CPU_HAS_HARDWARE_INTERRUPT_STACK   FALSE
 
#define CPU_ALLOCATE_INTERRUPT_STACK   FALSE
 
#define CPU_ISR_PASSES_FRAME_POINTER   0
 
#define CPU_HARDWARE_FP   FALSE
 
#define CPU_SOFTWARE_FP   FALSE
 
#define CPU_ALL_TASKS_ARE_FP   FALSE
 
#define CPU_IDLE_TASK_IS_FP   FALSE
 
#define CPU_USE_DEFERRED_FP_SWITCH   FALSE
 
#define CPU_PROVIDES_IDLE_THREAD_BODY   FALSE
 
#define CPU_STACK_GROWS_UP   FALSE
 
#define CPU_STRUCTURE_ALIGNMENT   __attribute__ ((aligned ( 32 )))
 
#define CPU_TIMESTAMP_USE_STRUCT_TIMESPEC   TRUE
 
#define CPU_MODES_INTERRUPT_MASK   0x1
 
#define CPU_CONTEXT_FP_SIZE   sizeof( Context_Control_fp )
 
#define CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK   0
 
#define CPU_PROVIDES_ISR_IS_IN_PROGRESS   FALSE
 
#define CPU_STACK_MINIMUM_SIZE   (1024 * 4)
 
#define CPU_SIZEOF_POINTER   4
 
#define CPU_ALIGNMENT   8
 
#define CPU_HEAP_ALIGNMENT   CPU_ALIGNMENT
 
#define CPU_PARTITION_ALIGNMENT   4
 
#define CPU_STACK_ALIGNMENT   8
 
#define CPU_USE_GENERIC_BITFIELD_CODE   TRUE
 
#define CPU_USE_GENERIC_BITFIELD_DATA   TRUE
 
#define CPU_PER_CPU_CONTROL_SIZE   0
 
#define ARM_EXCEPTION_FRAME_SIZE   80
 
#define ARM_EXCEPTION_FRAME_REGISTER_SP_OFFSET   52
 
#define ARM_EXCEPTION_FRAME_VFP_CONTEXT_OFFSET   72
 
#define ARM_VFP_CONTEXT_SIZE   264
 
#define _CPU_ISR_Disable(_isr_cookie)
 
#define _CPU_ISR_Enable(_isr_cookie)   arm_interrupt_enable( _isr_cookie )
 
#define _CPU_ISR_Flash(_isr_cookie)   arm_interrupt_flash( _isr_cookie )
 
#define _CPU_Context_Get_SP(_context)   (_context)->register_sp
 
#define _CPU_Context_Restart_self(_the_context)   _CPU_Context_restore( (_the_context) );
 
#define _CPU_Context_Fp_start(_base, _offset)   ( (void *) _Addresses_Add_offset( (_base), (_offset) ) )
 
#define _CPU_Context_Initialize_fp(_destination)
 
#define _CPU_Fatal_halt(_source, _err)
 

Typedefs

typedef uint32_t CPU_Counter_ticks
 
typedef CPU_Exception_frame CPU_Interrupt_frame
 

Functions

void _CPU_ISR_Set_level (uint32_t level)
 Sets the hardware interrupt level by the level value. More...
 
uint32_t _CPU_ISR_Get_level (void)
 Return the current interrupt disable level for this task in the format used by the interrupt level portion of the task mode. More...
 
void _CPU_Context_Initialize (Context_Control *the_context, void *stack_area_begin, size_t stack_area_size, uint32_t new_level, void(*entry_point)(void), bool is_fp, void *tls_area)
 
void _CPU_Initialize (void)
 CPU initialization. More...
 
void _CPU_ISR_install_vector (uint32_t vector, proc_ptr new_handler, proc_ptr *old_handler)
 This routine installs an interrupt vector. More...
 
void _CPU_Context_switch (Context_Control *run, Context_Control *heir)
 CPU switch context. More...
 
void _CPU_Context_restore (Context_Control *new_context)
 This routine is generally used only to restart self in an efficient manner. More...
 
void _CPU_Context_volatile_clobber (uintptr_t pattern)
 Clobbers all volatile registers with values derived from the pattern parameter. More...
 
void _CPU_Context_validate (uintptr_t pattern)
 Initializes and validates the CPU context with values derived from the pattern parameter. More...
 
CPU_Counter_ticks _CPU_Counter_read (void)
 
CPU_Counter_ticks _CPU_Counter_difference (CPU_Counter_ticks second, CPU_Counter_ticks first)
 Returns the difference between the second and first CPU counter value. More...
 
void * _CPU_Thread_Idle_body (uintptr_t ignored)
 
void _CPU_Exception_frame_print (const CPU_Exception_frame *frame)
 
void _ARM_Exception_default (CPU_Exception_frame *frame)
 
void rtems_exception_init_mngt (void)
 

Variables

uint32_t arm_cpu_mode
 

Detailed Description

ARM Architecture Support API.