RTEMS 6.1-rc7
Loading...
Searching...
No Matches
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
40static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
41{
42 (void) pattern;
43
44 /* TODO */
45}
46
47static inline void _CPU_Context_validate( uintptr_t pattern )
48{
49 (void) pattern;
50
51 while (1) {
52 /* TODO */
53 }
54}
55
56static inline void _CPU_Instruction_illegal( void )
57{
58 __asm__ volatile ( ".word 0" );
59}
60
61static inline void _CPU_Instruction_no_operation( void )
62{
63 __asm__ volatile ( "nop" );
64}
65
66static inline void _CPU_Use_thread_local_storage(
68)
69{
70 (void) context;
71}
72
73static inline void *_CPU_Get_TLS_thread_pointer(
75)
76{
77 (void) context;
78 return NULL;
79}
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif /* ASM */
86
89#endif /* _RTEMS_SCORE_CPUIMPL_H */
rtems_termios_device_context * context
Definition: console-config.c:62
Thread register context.
Definition: cpu.h:173