[PATCH] m68k: Avoid _Addresses_Add_offset()
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Jan 17 06:34:05 UTC 2019
This prevents a cyclic dependency between <rtems/score/cpu.h> and
<rtems/score/address.h>.
---
cpukit/score/cpu/m68k/include/rtems/score/cpu.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/score/cpu/m68k/include/rtems/score/cpu.h b/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
index 08690f20bd..2d48cb08e1 100644
--- a/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
@@ -243,8 +243,8 @@ typedef struct {
*/
#define _CPU_Context_Initialize_fp( _fp_area ) \
{ \
- uint32_t *_fp_context = _Addresses_Add_offset( \
- *(_fp_area), CPU_CONTEXT_FP_SIZE - 4); \
+ uint32_t *_fp_context = (uint32_t *) \
+ ( (uintptr_t) *( _fp_area ) + CPU_CONTEXT_FP_SIZE - 4 ); \
*(--(_fp_context)) = 0; \
*(_fp_area) = (void *)(_fp_context); \
}
--
2.16.4
More information about the devel
mailing list