
6 Sep
2015
6 Sep
'15
3:20 p.m.
Hi Marek,
I think this will not work on 64bit machines.
I tried 64bits with
print_lnum("fdt_blob", (u64)gd->fdt_blob);
But got this warning,
CC common/cmd_bdinfo.o common/cmd_bdinfo.c: In function 'do_bdinfo': common/cmd_bdinfo.c:180:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] print_lnum("fdt_blob", (u64)gd->fdt_blob); ^ include/asm-generic/global_data.h const void *fdt_blob; /* Our device tree, NULL if none */
Actually, the print is guarded with CONFIG_NIOS2, so it is safe to use 32bits.
Or shall we invent a "print pointer address"?
Best regards, Thomas Chou