From eb55e007ab21221822b20c814257ce9ca94b7f74 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 12 Apr 2010 15:28:03 +0000 Subject: [PATCH] =?UTF-8?q?2010-04-12=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * score/include/rtems/system.h: Let RTEMS_offsetof return uintptr_t instead of uint32_t (16bit target compatibility). --- cpukit/ChangeLog | 5 +++++ cpukit/score/include/rtems/system.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 3126433924..a9b5701697 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2010-04-12 Ralf Corsépius + + * score/include/rtems/system.h: Let RTEMS_offsetof return uintptr_t + instead of uint32_t (16bit target compatibility). + 2010-04-12 Ralf Corsépius * libmisc/monitor/mon-part.c, libmisc/monitor/mon-region.c: diff --git a/cpukit/score/include/rtems/system.h b/cpukit/score/include/rtems/system.h index 0993f1e632..9243e32305 100644 --- a/cpukit/score/include/rtems/system.h +++ b/cpukit/score/include/rtems/system.h @@ -189,7 +189,7 @@ typedef void * proc_ptr; * This macro is used to obtain the offset of a field in a structure. */ #define RTEMS_offsetof(type, field) \ - ((uint32_t) &(((type *) 0)->field)) + ((uintptr_t) &(((type *) 0)->field)) /** * The following is the extern for the RTEMS version string.