2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>

* score/include/rtems/system.h: Let RTEMS_offsetof return uintptr_t
	instead of uint32_t (16bit target compatibility).
This commit is contained in:
Ralf Corsepius
2010-04-12 15:28:03 +00:00
parent ffed83e099
commit eb55e007ab
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/system.h: Let RTEMS_offsetof return uintptr_t
instead of uint32_t (16bit target compatibility).
2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/monitor/mon-part.c, libmisc/monitor/mon-region.c:

View File

@@ -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.