Author: blueswirl Date: 2007-11-19 20:11:38 +0100 (Mon, 19 Nov 2007) New Revision: 179
Modified: openbios-devel/drivers/obio.c Log: Improved Module ID generation
Modified: openbios-devel/drivers/obio.c =================================================================== --- openbios-devel/drivers/obio.c 2007-11-17 19:00:58 UTC (rev 178) +++ openbios-devel/drivers/obio.c 2007-11-19 19:11:38 UTC (rev 179) @@ -891,7 +891,15 @@ push_str("cache-coherence?"); fword("property");
- PUSH(i); + switch (machine_id) { + case 0x71: + case 0x72: + PUSH(i + 8); + break; + case 0x80: + PUSH(i); + break; + } fword("encode-int"); push_str("mid"); fword("property"); @@ -1110,6 +1118,7 @@ sparc_header->smp_ctx = context; sparc_header->valid = 1;
+ cpu &= 7; intregs->cpu_intregs[cpu].set = SUN4M_SOFT_INT(14);
return 0;