yabel: explicitly cast values to match printk expectations
Change-Id: Id2230ecd800b138b6ccbbac318e71c9edf076c75 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/12116 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
21f8193843
commit
67a71ea230
|
@ -176,10 +176,10 @@ dumpHID(void)
|
||||||
u64 hid;
|
u64 hid;
|
||||||
//HID1 = 1009
|
//HID1 = 1009
|
||||||
__asm__ __volatile__("mfspr %0, 1009":"=r"(hid));
|
__asm__ __volatile__("mfspr %0, 1009":"=r"(hid));
|
||||||
printf("HID1: %016llx\n", hid);
|
printf("HID1: %016llx\n", (unsigned long long)hid);
|
||||||
//HID4 = 1012
|
//HID4 = 1012
|
||||||
__asm__ __volatile__("mfspr %0, 1012":"=r"(hid));
|
__asm__ __volatile__("mfspr %0, 1012":"=r"(hid));
|
||||||
printf("HID4: %016llx\n", hid);
|
printf("HID4: %016llx\n", (unsigned long long)hid);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue