source: rtems/cpukit/score/cpu/nios2/nios2-thread-dispatch-disabled.c @ 9165349d

Last change on this file since 9165349d was 9165349d, checked in by Sebastian Huber <sebastian.huber@…>, on 01/12/21 at 06:13:08

nios2: Use Per_CPU_Control::isr_dispatch_disable

  • Property mode set to 100644
File size: 1.2 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(isr_dispatch_disable, ISR_DISPATCH_DISABLE);
47NIOS2_ASSERT_OFFSET(stack_mpubase, STACK_MPUBASE);
48NIOS2_ASSERT_OFFSET(stack_mpuacc, STACK_MPUACC);
Note: See TracBrowser for help on using the repository browser.