RTEMS 6.1-rc2
Loading...
Searching...
No Matches
cpuimpl.h
Go to the documentation of this file.
1
7/*
8 * Copyright (c) 2018.
9 * Amaan Cheval <amaan.cheval@gmail.com>
10 *
11 * Copyright (C) 2013, 2016 embedded brains GmbH & Co. KG
12 *
13 * The license and distribution terms for this file may be
14 * found in the file LICENSE in this distribution or at
15 * http://www.rtems.org/license/LICENSE.
16 */
17
18#ifndef _RTEMS_SCORE_CPUIMPL_H
19#define _RTEMS_SCORE_CPUIMPL_H
20
21#include <rtems/score/cpu.h>
22
33#define CPU_PER_CPU_CONTROL_SIZE 0
34
35#define CPU_THREAD_LOCAL_STORAGE_VARIANT 20
36
37#ifndef ASM
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43RTEMS_NO_RETURN void _CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr error );
44
45static inline void _CPU_Context_volatile_clobber( uintptr_t pattern )
46{
47 (void) pattern;
48
49 /* TODO */
50}
51
52static inline void _CPU_Context_validate( uintptr_t pattern )
53{
54 (void) pattern;
55
56 while (1) {
57 /* TODO */
58 }
59}
60
61static inline void _CPU_Instruction_illegal( void )
62{
63 __asm__ volatile ( ".word 0" );
64}
65
66static inline void _CPU_Instruction_no_operation( void )
67{
68 __asm__ volatile ( "nop" );
69}
70
71static inline void _CPU_Use_thread_local_storage(
73)
74{
75 (void) context;
76}
77
78static inline void *_CPU_Get_TLS_thread_pointer(
80)
81{
82 (void) context;
83 return NULL;
84}
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif /* !ASM */
91
94#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
uintptr_t CPU_Uint32ptr
Definition: cpu.h:557
#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