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

5
Last change on this file since b04b76c6 was b04b76c6, checked in by Sebastian Huber <sebastian.huber@…>, on 06/07/16 at 19:36:48

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.9 KB
RevLine 
[66a5000d]1/**
2 * @file
3 *
4 * @brief Epiphany Architecture Types API
5 */
6
7/*
8 * Copyright (c) 2015 University of York.
9 * Hesham ALMatary <hmka501@york.ac.uk>
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 *    notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 *    notice, this list of conditions and the following disclaimer in the
18 *    documentation and/or other materials provided with the distribution.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33 #ifndef _RTEMS_SCORE_TYPES_H
34#define _RTEMS_SCORE_TYPES_H
35
36#include <rtems/score/basedefs.h>
37
38#ifndef ASM
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
44/**
45 * @addtogroup ScoreCPU
46 */
47/**@{**/
48
49/*
50 *  This section defines the basic types for this processor.
51 */
52
53/** Type that can store a 32-bit integer or a pointer. */
54typedef uintptr_t CPU_Uint32ptr;
55
56typedef void epiphany_isr;
57typedef void ( *epiphany_isr_entry )( void );
58
59/** @} */
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif  /* !ASM */
66
67#endif
Note: See TracBrowser for help on using the repository browser.