RTEMS 6.1-rc5
|
i386 specific support. More...
Modules | |
Processor Dependent Interrupt Management | |
i386 Interrupt Management | |
i386 Assembler Support | |
i386 Assembler Support | |
i386 Paravirtualization Support | |
Data Structures | |
struct | Context_Control |
Thread register context. More... | |
struct | Context_Control_fp |
SPARC basic context. More... | |
struct | CPU_Exception_frame |
The set of registers that specifies the complete processor state. More... | |
struct | CPU_Interrupt_frame |
Interrupt stack frame (ISF). More... | |
Macros | |
#define | CPU_SIMPLE_VECTORED_INTERRUPTS FALSE |
#define | CPU_ISR_PASSES_FRAME_POINTER FALSE |
#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 TRUE |
#define | CPU_ENABLE_ROBUST_THREAD_DISPATCH FALSE |
#define | CPU_STACK_GROWS_UP FALSE |
#define | CPU_CACHE_LINE_BYTES 64 |
#define | CPU_STRUCTURE_ALIGNMENT |
#define | CPU_MAXIMUM_PROCESSORS 32 |
#define | I386_CONTEXT_CONTROL_EFLAGS_OFFSET 0 |
#define | I386_CONTEXT_CONTROL_ESP_OFFSET 4 |
#define | I386_CONTEXT_CONTROL_EBP_OFFSET 8 |
#define | I386_CONTEXT_CONTROL_EBX_OFFSET 12 |
#define | I386_CONTEXT_CONTROL_ESI_OFFSET 16 |
#define | I386_CONTEXT_CONTROL_EDI_OFFSET 20 |
#define | I386_CONTEXT_CONTROL_GS_0_OFFSET 24 |
#define | I386_CONTEXT_CONTROL_GS_1_OFFSET 28 |
#define | I386_CONTEXT_CONTROL_ISR_DISPATCH_DISABLE 32 |
#define | _CPU_Context_Get_SP(_context) (uintptr_t) (_context)->esp |
#define | CPU_CONTEXT_FP_SIZE sizeof( Context_Control_fp ) |
#define | CPU_MODES_INTERRUPT_MASK 0x00000001 /* interrupt level in mode */ |
#define | CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK 1024 |
#define | CPU_PROVIDES_ISR_IS_IN_PROGRESS FALSE |
#define | CPU_STACK_MINIMUM_SIZE 4096 |
#define | CPU_SIZEOF_POINTER 4 |
#define | CPU_ALIGNMENT 4 |
#define | CPU_HEAP_ALIGNMENT CPU_ALIGNMENT |
#define | CPU_STACK_ALIGNMENT 16 |
#define | CPU_INTERRUPT_STACK_ALIGNMENT CPU_CACHE_LINE_BYTES |
#define | _CPU_ISR_Disable(_level) i386_disable_interrupts( _level ) |
#define | _CPU_ISR_Enable(_level) i386_enable_interrupts( _level ) |
#define | _CPU_ISR_Flash(_level) i386_flash_interrupts( _level ) |
#define | _CPU_ISR_Set_level(_new_level) |
#define | _CPU_Interrupt_stack_setup(_lo, _hi) |
#define | CPU_EFLAGS_INTERRUPTS_ON 0x00003202 |
#define | CPU_EFLAGS_INTERRUPTS_OFF 0x00003002 |
#define | _CPU_Context_Restart_self(_the_context) _CPU_Context_restore( (_the_context) ); |
#define | _CPU_Context_Initialize_fp(_fp_area) |
#define | CPU_USE_LIBC_INIT_FINI_ARRAY FALSE |
#define | CPU_USE_GENERIC_BITFIELD_CODE FALSE |
#define | _CPU_Bitfield_Find_first_bit(_value, _output) |
#define | _CPU_Priority_Mask(_bit_number) ( 1 << (_bit_number) ) |
#define | _CPU_Priority_bits_index(_priority) (_priority) |
#define | CPU_PER_CPU_CONTROL_SIZE 0 |
#define | CPU_INTERRUPT_FRAME_SIZE 52 |
#define | CPU_THREAD_LOCAL_STORAGE_VARIANT 20 |
Typedefs | |
typedef void(* | cpuExcHandlerType) (CPU_Exception_frame *) |
typedef void(* | CPU_ISR_handler) (void) |
typedef uint32_t | CPU_Counter_ticks |
Functions | |
void | rtems_exception_init_mngt (void) |
uint32_t | _CPU_ISR_Get_level (void) |
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. | |
void | _CPU_ISR_install_vector (uint32_t vector, CPU_ISR_handler new_handler, CPU_ISR_handler *old_handler) |
RTEMS_NO_RETURN void * | _CPU_Thread_Idle_body (uintptr_t ignored) |
void | _CPU_Context_switch (Context_Control *run, Context_Control *heir) |
CPU switch context. | |
RTEMS_NO_RETURN void | _CPU_Context_switch_no_return (Context_Control *executing, Context_Control *heir) |
RTEMS_NO_RETURN void | _CPU_Context_restore (Context_Control *new_context) |
void | _CPU_Context_save_fp (Context_Control_fp **fp_context_ptr) |
void | _CPU_Context_restore_fp (Context_Control_fp **fp_context_ptr) |
void | _CPU_Exception_frame_print (const CPU_Exception_frame *frame) |
uint32_t | _CPU_Counter_frequency (void) |
CPU_Counter_ticks | _CPU_Counter_read (void) |
Variables | |
cpuExcHandlerType | _currentExcHandler |
Context_Control_fp | _CPU_Null_fp_context |
i386 specific support.
i386 Architecture Support
This include file contains information pertaining to the Intel i386 processor.
This file contains definitions for data structure related to Intel system programming. More information can be found on Intel site and more precisely in the following book :
Pentium Processor familly Developper's Manual Volume 3 : Architecture and Programming Manual
Formerly contained in and extracted from libcpu/i386/cpu.h.
Applications must not include this file directly.
This file contains definition and constants related to Intel Cpu
#define _CPU_Bitfield_Find_first_bit | ( | _value, | |
_output | |||
) |
#define _CPU_Context_Initialize_fp | ( | _fp_area | ) |
#define _CPU_Interrupt_stack_setup | ( | _lo, | |
_hi | |||
) |
#define _CPU_ISR_Set_level | ( | _new_level | ) |
RTEMS_NO_RETURN void _CPU_Context_restore | ( | Context_Control * | new_context | ) |
This routine is generally used only to restart self in an efficient manner. It may simply be a label in _CPU_Context_switch.
[in] | new_context | points to the context to be restored. |
Port Specific Information:
XXX document implementation including references if appropriate
void _CPU_Context_switch | ( | Context_Control * | run, |
Context_Control * | heir | ||
) |
CPU switch context.
This routine switches from the run context to the heir context.
[in] | run | points to the context of the currently executing task |
[in] | heir | points to the context of the heir task |
Port Specific Information:
XXX document implementation including references if appropriate
void _CPU_Initialize | ( | void | ) |
CPU initialization.
CPU initialize. This routine performs CPU dependent initialization.
CPU initialize. This routine performs CPU dependent initialization.
CPU initialization.
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.
Port Specific Information:
XXX document implementation including references if appropriate