j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: afaerber Date: Sat Nov 27 01:46:44 2010 New Revision: 970 URL: http://tracker.coreboot.org/trac/openbios/changeset/970
Log: ppc: Use mfpvr() for device tree init
This also accounts for the fact that the PVR is 32 bits on ppc64.
Signed-off-by: Andreas Färber andreas.faerber@web.de
Modified: trunk/openbios-devel/arch/ppc/qemu/init.c
Modified: trunk/openbios-devel/arch/ppc/qemu/init.c ============================================================================== --- trunk/openbios-devel/arch/ppc/qemu/init.c Thu Nov 25 22:56:23 2010 (r969) +++ trunk/openbios-devel/arch/ppc/qemu/init.c Sat Nov 27 01:46:44 2010 (r970) @@ -193,8 +193,6 @@ static void cpu_generic_init(const struct cpudef *cpu) { - unsigned long iu_version; - push_str("/cpus"); fword("find-device");
@@ -206,9 +204,7 @@ push_str("cpu"); fword("device-type");
- asm("mfpvr %0\n" - : "=r"(iu_version) :); - PUSH(iu_version); + PUSH(mfpvr()); fword("encode-int"); push_str("cpu-version"); fword("property");