source: rtems/cpukit/score/cpu/or1k/include/rtems/score/cpuimpl.h @ 39594416

5
Last change on this file since 39594416 was 39594416, checked in by Andreas Dachsberger <andreas.dachsberger@…>, on 03/26/19 at 10:40:41

doxygen: score: Add or1k CPU architecture group

Update #3706.

  • Property mode set to 100644
File size: 1006 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/**
21 * @defgroup RTEMSScoreCPUor1k OpenRISC 1000 (or1k)
22 *
23 * @ingroup RTEMSScoreCPU
24 *
25 * @brief OpenRISC 1000 (or1k) Architecture Support
26 *
27 * @{
28 */
29
30#define CPU_PER_CPU_CONTROL_SIZE 0
31
32#ifndef ASM
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38void _CPU_Context_volatile_clobber( uintptr_t pattern );
39
40void _CPU_Context_validate( uintptr_t pattern );
41
42RTEMS_INLINE_ROUTINE void _CPU_Instruction_illegal( void )
43{
44  __asm__ volatile ( ".word 0" );
45}
46
47RTEMS_INLINE_ROUTINE void _CPU_Instruction_no_operation( void )
48{
49  __asm__ volatile ( "l.nop" );
50}
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif /* ASM */
57
58/** @} */
59
60#endif /* _RTEMS_SCORE_CPUIMPL_H */
Note: See TracBrowser for help on using the repository browser.