[Bug 1607] __RTEMS_SIZEOF_VOID_P__ flawed design

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Jul 8 07:19:42 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1607

--- Comment #6 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2010-07-08 02:19:40 CDT ---
1. We need this per CPU structure to support multi-core systems.
2. We have to access fields of this CPU structure in assembly code.

Thus we have to know the offsets relative to the structure begin and the size
of the fields.

The only way I see is to use preprocessor defines in a header file on a per
multi-lib option basis.  Depending on multi-lib options the offsets and sizes
will be determined.  The generated header file will be available in the build
tree and installed in a multi-lib dependent include directory (does this exist
already?).

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list