Serious Bug All Targets -- Please Read

Ralf Corsepius ralf.corsepius at rtems.org
Tue Mar 3 02:47:11 UTC 2009


Till Straumann wrote:
> Hmm - AFAIK, c99 doesn't specify the exact representation
> of 'bool' / '_Bool'. It only says that
> 
> "An object declared as type _Bool is large enough to store the values 0 
> and 1"
> 
> Hence, there is no really safe way to access such
> an object from assembly code.
Exactly.

> I wonder if it wouldn't be better to change the
> type of _Context_Switch_necessary & friends
> to a type of known width.
IMO, no.

We should change to code into something which doesn't need to know the 
size of a type, rsp. automatically gets it right.

Ralf



More information about the users mailing list