Author: blueswirl Date: 2008-12-11 18:10:03 +0100 (Thu, 11 Dec 2008) New Revision: 283
Modified: openbios-devel/arch/sparc64/openbios.c Log: Fix fake CPU ID value (Igor Kovalenko)
Small correction: cpuid property of qemu cpu should be "0" for the linux kernel to boot on qemu. This is because kernel is reading cpu registers to find out current smp processor ID and it happens to find out "0" cpuid because corresponding register is zeroed by qemu. Currently kernel fails since there is no "0" cpu node in tree.
Modified: openbios-devel/arch/sparc64/openbios.c =================================================================== --- openbios-devel/arch/sparc64/openbios.c 2008-12-05 18:32:39 UTC (rev 282) +++ openbios-devel/arch/sparc64/openbios.c 2008-12-11 17:10:03 UTC (rev 283) @@ -424,7 +424,7 @@ push_str("sparc-version"); fword("property");
- PUSH(1); + PUSH(0); fword("encode-int"); push_str("cpuid"); fword("property");