[Bug 1607] __RTEMS_SIZEOF_VOID_P__ flawed design

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Jul 8 07:31:15 UTC 2010


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

--- Comment #7 from Ralf Corsepius <ralf.corsepius at rtems.org> 2010-07-08 02:31:13 CDT ---
(In reply to comment #6)
> 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.
Not quite - Your design does not allow otherwise.

You could redesign your code in such a way it doesn't have these
limitations/restriction attached, e.g. 
* by rewriting your code in inline-asm (There you can utilize sizeof())
or
* by using helper const variables being set up in C and refer to them in asm or
inline-asm
or
* by re-writing everything in C, such that only very few atomic ops (functions)
would have to be needed.

There probably are many more ways.

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