source: rtems/cpukit/score/cpu/v850/include/rtems/score/cpuimpl.h @ b74353e

5
Last change on this file since b74353e was b74353e, checked in by Sebastian Huber <sebastian.huber@…>, on 07/20/18 at 06:06:46

score: Add _CPU_Instruction_no_operation()

This helps to reduce the use of architecture-specific defines throughout
the code base.

  • Property mode set to 100644
File size: 835 bytes
Line 
1/**
2 * @file
3 *
4 * @brief CPU Port Implementation API
5 */
6
7/*
8 * Copyright (c) 2013 embedded brains GmbH
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
20#define CPU_PER_CPU_CONTROL_SIZE 0
21
22#ifndef ASM
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28RTEMS_INLINE_ROUTINE void _CPU_Context_volatile_clobber( uintptr_t pattern )
29{
30  /* TODO */
31}
32
33RTEMS_INLINE_ROUTINE void _CPU_Context_validate( uintptr_t pattern )
34{
35  while (1) {
36    /* TODO */
37  }
38}
39
40RTEMS_INLINE_ROUTINE void _CPU_Instruction_no_operation( void )
41{
42  __asm__ volatile ( "nop" );
43}
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* ASM */
50
51#endif /* _RTEMS_SCORE_CPUIMPL_H */
Note: See TracBrowser for help on using the repository browser.