RTEMS 6.1-rc1
cpuimpl.h
Go to the documentation of this file.
1
7/*
8 * Copyright (c) 2013 embedded brains GmbH & Co. KG
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifndef _RTEMS_SCORE_CPUIMPL_H
16#define _RTEMS_SCORE_CPUIMPL_H
17
18#include <rtems/score/cpu.h>
19
30#define CPU_PER_CPU_CONTROL_SIZE 0
31
32#define CPU_THREAD_LOCAL_STORAGE_VARIANT 10
33
34#ifndef ASM
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40RTEMS_NO_RETURN void _CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr error );
41
42static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
43{
44 (void) pattern;
45
46 /* TODO */
47}
48
49static inline void _CPU_Context_validate( uintptr_t pattern )
50{
51 (void) pattern;
52
53 while (1) {
54 /* TODO */
55 }
56}
57
58static inline void _CPU_Instruction_illegal( void )
59{
60 __asm__ volatile ( ".word 0" );
61}
62
63static inline void _CPU_Instruction_no_operation( void )
64{
65 __asm__ volatile ( "nop" );
66}
67
68static inline void _CPU_Use_thread_local_storage(
70)
71{
72 (void) context;
73}
74
75static inline void *_CPU_Get_TLS_thread_pointer(
77)
78{
79 (void) context;
80 return NULL;
81}
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* ASM */
88
91#endif /* _RTEMS_SCORE_CPUIMPL_H */
#define RTEMS_NO_RETURN
Tells the compiler in a function declaration that this function does not return.
Definition: basedefs.h:386
RTEMS_NO_RETURN void _CPU_Fatal_halt(uint32_t source, CPU_Uint32ptr error)
Definition: bsp_fatal_halt.c:31
uintptr_t CPU_Uint32ptr
Definition: cpu.h:557
register struct Per_CPU_Control *_SPARC_Per_CPU_current __asm__("g6")
The pointer to the current per-CPU control is available via register g6.
#define NULL
Requests a GPIO pin group configuration.
Definition: xil_types.h:54
rtems_termios_device_context * context
Definition: console-config.c:62
Thread register context.
Definition: cpu.h:169