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 Apr 15, 2020 at 7:48:32 AM

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
Line 
1/**
2 * @file
3 *
4 * @brief NIOS II Specific Thread Dispatch Disabled Indicator.
5 */
6
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
18 * http://www.rtems.org/license/LICENSE.
19 */
20
21#ifdef HAVE_CONFIG_H
22#include "config.h"
23#endif
24
25#include <rtems/score/cpu.h>
26#include <rtems/score/nios2-utility.h>
27
28#define NIOS2_ASSERT_OFFSET(field, off) \
29  RTEMS_STATIC_ASSERT( \
30    offsetof(Context_Control, field) == NIOS2_CONTEXT_OFFSET_ ## off, \
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);
46NIOS2_ASSERT_OFFSET(thread_dispatch_disabled, THREAD_DISPATCH_DISABLED);
47NIOS2_ASSERT_OFFSET(stack_mpubase, STACK_MPUBASE);
48NIOS2_ASSERT_OFFSET(stack_mpuacc, STACK_MPUACC);
49
50uint32_t _Nios2_Thread_dispatch_disabled;
Note: See TracBrowser for help on using the repository browser.