[OpenBIOS] [PATCH] ppc: Move noreturn attribute

Blue Swirl blauwirbel at gmail.com
Wed Oct 20 17:48:29 CEST 2010

On Mon, Oct 18, 2010 at 11:19 AM, Mark Cave-Ayland
<mark.cave-ayland at siriusit.co.uk> wrote:
> Blue Swirl wrote:
>>> Most problems were caused by the assumption that a conversion between
>>> ucell
>>> und void* is possible; I added (unsigned long) casts or reused the
>>> cell2pointer/pointer2cell macros.
>> Those should be merged with kernel/cross.h ones and used everywhere.
> Indeed. Is there a way we can make the compiler throw an error if (u)cells
> are assigned directly to pointers for everyone?

'typedef cell struct something' should do the trick. This could be
useful also for the 128 bit ducell case.

More information about the OpenBIOS mailing list