source: rtems/cpukit/score/cpu/sh/rtems/score/types.h @ b04b76c6

5
Last change on this file since b04b76c6 was b04b76c6, checked in by Sebastian Huber <sebastian.huber@…>, on Jun 7, 2016 at 7:36:48 PM

score: Simplify priority bit map implementation

The priority bit map can deal with a maximum of 256 priority values
ranging from 0 to 255. Consistently use an unsigned int for
computation, due to the usual integer promotion rules.

Make Priority_bit_map_Word definition architecture-independent and
define it to uint16_t. This was already the case for all architectures
except PowerPC. Adjust the PowerPC bitmap support accordingly.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 *
4 * @brief Hitachi SH CPU Type Definitions
5 *
6 * This include file contains information pertaining to the Hitachi SH
7 * processor.
8 */
9
10/*
11 *  Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and
12 *           Bernd Becker (becker@faw.uni-ulm.de)
13 *
14 *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
15 *
16 *  This program is distributed in the hope that it will be useful,
17 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 *
20 *
21 *  COPYRIGHT (c) 1998-2001.
22 *  On-Line Applications Research Corporation (OAR).
23 *
24 *  The license and distribution terms for this file may be
25 *  found in the file LICENSE in this distribution or at
26 *  http://www.rtems.org/license/LICENSE.
27 */
28
29#ifndef _RTEMS_SCORE_TYPES_H
30#define _RTEMS_SCORE_TYPES_H
31
32#include <rtems/score/basedefs.h>
33
34#ifndef ASM
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40/*
41 *  This section defines the basic types for this processor.
42 */
43
44/** Type that can store a 32-bit integer or a pointer. */
45typedef uintptr_t CPU_Uint32ptr;
46
47typedef void sh_isr;
48typedef void ( *sh_isr_entry )( void );
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif  /* !ASM */
55
56#endif
Note: See TracBrowser for help on using the repository browser.