alignment bugs in prom_init

Olaf Hering olh at suse.de
Sat Mar 4 02:27:49 EST 2006


 On Fri, Mar 03, Andreas Schwab wrote:

> Olaf Hering <olh at suse.de> writes:
> 
> > sp is 0x0023e784, val is at offset 120, which makes 0x0023e7fc. This
> > address is casted to u32, which changes it to 0x0023e7f8.
> 
> Since when does casting to u32 cut off the low bits?

Way before gcc4.0 release at least.



More information about the Linuxppc-dev mailing list