source: rtems/cpukit/score/cpu/nios2/nios2-thread-dispatch-disabled.c @ 80cf60e

5
Last change on this file since 80cf60e was 80cf60e, checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/20 at 07:48:32

Canonicalize config.h include

Use the following variant which was already used by most source files:

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[43e0599]1/**
2 * @file
3 *
4 * @brief NIOS II Specific Thread Dispatch Disabled Indicator.
5 */
6
[e2d0c68]7/*
8 * Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
9 *
10 *  embedded brains GmbH
11 *  Obere Lagerstr. 30
12 *  82178 Puchheim
13 *  Germany
14 *  <rtems@embedded-brains.de>
15 *
16 * The license and distribution terms for this file may be
17 * found in the file LICENSE in this distribution or at
[c499856]18 * http://www.rtems.org/license/LICENSE.
[e2d0c68]19 */
20
21#ifdef HAVE_CONFIG_H
[80cf60e]22#include "config.h"
[e2d0c68]23#endif
24
[3fe2155]25#include <rtems/score/cpu.h>
[e2d0c68]26#include <rtems/score/nios2-utility.h>
27
28#define NIOS2_ASSERT_OFFSET(field, off) \
29  RTEMS_STATIC_ASSERT( \
[f604a94]30    offsetof(Context_Control, field) == NIOS2_CONTEXT_OFFSET_ ## off, \
[e2d0c68]31    nios2_context_offset_ ## field \
32  )
33
34NIOS2_ASSERT_OFFSET(r16, R16);
35NIOS2_ASSERT_OFFSET(r17, R17);
36NIOS2_ASSERT_OFFSET(r18, R18);
37NIOS2_ASSERT_OFFSET(r19, R19);
38NIOS2_ASSERT_OFFSET(r20, R20);
39NIOS2_ASSERT_OFFSET(r21, R21);
40NIOS2_ASSERT_OFFSET(r22, R22);
41NIOS2_ASSERT_OFFSET(r23, R23);
42NIOS2_ASSERT_OFFSET(fp, FP);
43NIOS2_ASSERT_OFFSET(status, STATUS);
44NIOS2_ASSERT_OFFSET(sp, SP);
45NIOS2_ASSERT_OFFSET(ra, RA);
[9f1412b9]46NIOS2_ASSERT_OFFSET(thread_dispatch_disabled, THREAD_DISPATCH_DISABLED);
47NIOS2_ASSERT_OFFSET(stack_mpubase, STACK_MPUBASE);
48NIOS2_ASSERT_OFFSET(stack_mpuacc, STACK_MPUACC);
[e2d0c68]49
50uint32_t _Nios2_Thread_dispatch_disabled;
Note: See TracBrowser for help on using the repository browser.