[Bug 1607] __RTEMS_SIZEOF_VOID_P__ flawed design

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Jul 13 19:46:50 UTC 2010


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

--- Comment #11 from Ralf Corsepius <ralf.corsepius at rtems.org> 2010-07-13 14:46:48 CDT ---
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > > (In reply to comment #7)
> > > > (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())
> > > 
> > > Inline-asm has be be within a function body? 
> > Yes, but there are ways to work around this.
> > 
> > E.g. one trick is to wrap everything into one C-function and to add functions
> > entries using inline-asm inside of it.
> > 
> This seems like a pretty "dirty" hack to me,
It's not dirtier than using asm.

 but worth considering. Note that
> this would involve rewriting all platforms' interrupt handling code as C and
> inline assembly rather than the current .S files.  However, this solutions
> allows for the compiler to generate constants and remains as efficient as the
> current autoconf-based solution.
The current autoconf-based solution is broken. 

More direct: It has NO FUTURE.

I need to insist on it being removed and am willing to apply drastic measures
should no viable alternative solution be implemented.

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