summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/or1k
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-07 21:36:48 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-08 15:48:03 +0200
commitb04b76c6a0c87ffc9670d356e793108411ce355a (patch)
treecaa6efe12424e3b91ce1902e50d74c0929d84bcd /cpukit/score/cpu/or1k
parentscore: Delete CPU_USE_GENERIC_BITFIELD_DATA (diff)
downloadrtems-b04b76c6a0c87ffc9670d356e793108411ce355a.tar.bz2
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.
Diffstat (limited to 'cpukit/score/cpu/or1k')
-rw-r--r--cpukit/score/cpu/or1k/rtems/score/cpu.h1
-rw-r--r--cpukit/score/cpu/or1k/rtems/score/types.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/cpukit/score/cpu/or1k/rtems/score/cpu.h b/cpukit/score/cpu/or1k/rtems/score/cpu.h
index c75d9d8bad..33717bc6e2 100644
--- a/cpukit/score/cpu/or1k/rtems/score/cpu.h
+++ b/cpukit/score/cpu/or1k/rtems/score/cpu.h
@@ -687,7 +687,6 @@ typedef struct {
#ifndef ASM
typedef uint32_t CPU_Counter_ticks;
-typedef uint16_t Priority_bit_map_Word;
typedef struct {
uint32_t r[32];
diff --git a/cpukit/score/cpu/or1k/rtems/score/types.h b/cpukit/score/cpu/or1k/rtems/score/types.h
index b3beb8371f..09790feb29 100644
--- a/cpukit/score/cpu/or1k/rtems/score/types.h
+++ b/cpukit/score/cpu/or1k/rtems/score/types.h
@@ -39,7 +39,6 @@ extern "C" {
/** Type that can store a 32-bit integer or a pointer. */
typedef uintptr_t CPU_Uint32ptr;
-typedef uint16_t Priority_bit_map_Word;
typedef void or1k_isr;
typedef void ( *or1k_isr_entry )( void );