summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-27 14:46:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-29 10:04:38 +0200
commitafb60eb183499106c4eedbc44fbb6bba6d67d145 (patch)
tree6443e9197028cd2ac6d915151661400ed982efff
parentriscv: Optimize context switch and interrupts (diff)
downloadrtems-afb60eb183499106c4eedbc44fbb6bba6d67d145.tar.bz2
riscv: Remove dead code
Update #3433.
-rw-r--r--cpukit/score/cpu/riscv/include/rtems/score/cpu.h42
1 files changed, 1 insertions, 41 deletions
diff --git a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
index 888de27e8e..124bbae1d4 100644
--- a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
@@ -76,16 +76,12 @@ extern "C" {
#define CPU_STACK_MINIMUM_SIZE 4096
-#define CPU_EXCEPTION_FRAME_SIZE 128
-
#elif __riscv_xlen == 64
#define CPU_SIZEOF_POINTER 8
#define CPU_STACK_MINIMUM_SIZE 8192
-#define CPU_EXCEPTION_FRAME_SIZE 256
-
#endif /* __riscv_xlen */
#define CPU_ALIGNMENT 8
@@ -219,48 +215,12 @@ void _CPU_Context_Initialize(
extern void _CPU_Fatal_halt(uint32_t source, uint32_t error) RTEMS_NO_RETURN;
-/* end of Fatal Error manager macros */
-
#define CPU_USE_GENERIC_BITFIELD_CODE TRUE
-#define CPU_USE_GENERIC_BITFIELD_DATA TRUE
-
-#if (CPU_USE_GENERIC_BITFIELD_CODE == FALSE)
-
-#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
- { \
- (_output) = 0; /* do something to prevent warnings */ \
- }
-#endif
-/* end of Bitfield handler macros */
-
-/*
- * This routine builds the mask which corresponds to the bit fields
- * as searched by _CPU_Bitfield_Find_first_bit(). See the discussion
- * for that routine.
- *
- */
-
-#if (CPU_USE_GENERIC_BITFIELD_CODE == FALSE)
-
-#define _CPU_Priority_Mask( _bit_number ) \
- (1 << _bit_number)
-
-#endif
-
-#if (CPU_USE_GENERIC_BITFIELD_CODE == FALSE)
-
-#define _CPU_Priority_bits_index( _priority ) \
- (_priority)
-
-#endif
+#define CPU_USE_GENERIC_BITFIELD_DATA TRUE
#define CPU_MAXIMUM_PROCESSORS 32
-#define CPU_TIMESTAMP_USE_STRUCT_TIMESPEC FALSE
-#define CPU_TIMESTAMP_USE_INT64 TRUE
-#define CPU_TIMESTAMP_USE_INT64_INLINE FALSE
-
typedef struct {
/* There is no CPU specific per-CPU state */
} CPU_Per_CPU_control;