RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros | Functions
percpuasm.c File Reference

This source file contains the static assertions for defines used in assembler files. More...

#include <rtems/score/cpu.h>
#include <rtems/score/percpu.h>

Macros

#define _RTEMS_PERCPU_DEFINE_OFFSETS
 
#define PER_CPU_IS_POWER_OF_TWO(value)    ( ( value ) > 1 && ( ( ( value ) - 1 ) & ( value ) ) == 0 )
 

Functions

 RTEMS_STATIC_ASSERT (CPU_ALIGNMENT >=2 &&PER_CPU_IS_POWER_OF_TWO(CPU_ALIGNMENT), CPU_ALIGNMENT)
 
 RTEMS_STATIC_ASSERT (CPU_HEAP_ALIGNMENT >=2 &&PER_CPU_IS_POWER_OF_TWO(CPU_HEAP_ALIGNMENT), CPU_HEAP_ALIGNMENT_0)
 
 RTEMS_STATIC_ASSERT (CPU_HEAP_ALIGNMENT >=CPU_ALIGNMENT, CPU_HEAP_ALIGNMENT_1)
 
 RTEMS_STATIC_ASSERT (CPU_STACK_ALIGNMENT >=CPU_HEAP_ALIGNMENT &&PER_CPU_IS_POWER_OF_TWO(CPU_STACK_ALIGNMENT), CPU_STACK_ALIGNMENT)
 
 RTEMS_STATIC_ASSERT (PER_CPU_IS_POWER_OF_TWO(CPU_STACK_MINIMUM_SIZE), CPU_STACK_MINIMUM_SIZE)
 
 RTEMS_STATIC_ASSERT (sizeof(void *)==CPU_SIZEOF_POINTER, CPU_SIZEOF_POINTER)
 
 RTEMS_STATIC_ASSERT (offsetof(Per_CPU_Control, isr_nest_level)==PER_CPU_ISR_NEST_LEVEL, PER_CPU_ISR_NEST_LEVEL)
 
 RTEMS_STATIC_ASSERT (offsetof(Per_CPU_Control, isr_dispatch_disable)==PER_CPU_ISR_DISPATCH_DISABLE, PER_CPU_ISR_DISPATCH_DISABLE)
 
 RTEMS_STATIC_ASSERT (offsetof(Per_CPU_Control, thread_dispatch_disable_level)==PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL, PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL)
 
 RTEMS_STATIC_ASSERT (offsetof(Per_CPU_Control, executing)==PER_CPU_OFFSET_EXECUTING, PER_CPU_OFFSET_EXECUTING)
 
 RTEMS_STATIC_ASSERT (offsetof(Per_CPU_Control, heir)==PER_CPU_OFFSET_HEIR, PER_CPU_OFFSET_HEIR)
 
 RTEMS_STATIC_ASSERT (offsetof(Per_CPU_Control, dispatch_necessary)==PER_CPU_DISPATCH_NEEDED, PER_CPU_DISPATCH_NEEDED)
 
 RTEMS_STATIC_ASSERT (offsetof(Per_CPU_Control, interrupt_stack_low)==PER_CPU_INTERRUPT_STACK_LOW, PER_CPU_INTERRUPT_STACK_LOW)
 
 RTEMS_STATIC_ASSERT (offsetof(Per_CPU_Control, interrupt_stack_high)==PER_CPU_INTERRUPT_STACK_HIGH, PER_CPU_INTERRUPT_STACK_HIGH)
 

Detailed Description

This source file contains the static assertions for defines used in assembler files.