Author: stepan Date: 2006-06-05 22:02:44 +0200 (Mon, 05 Jun 2006) New Revision: 47
Modified: openbios-devel/drivers/esp.c openbios-devel/drivers/obio.c Log: add quick and dirty hack to esp.c to get further with solaris. add interrupt information to obio.c to boot netbsd
Modified: openbios-devel/drivers/esp.c =================================================================== --- openbios-devel/drivers/esp.c 2006-06-05 19:49:53 UTC (rev 46) +++ openbios-devel/drivers/esp.c 2006-06-05 20:02:44 UTC (rev 47) @@ -511,6 +511,8 @@ add_alias(nodebuff, aliasbuff); sprintf(aliasbuff, "sd(0,%d,0)", id); add_alias(nodebuff, aliasbuff); + sprintf(aliasbuff, "sd(0,%d,0)@0,0", id); + add_alias(nodebuff, aliasbuff); (*counter_ptr)++; } DPRINTF("done\n");
Modified: openbios-devel/drivers/obio.c =================================================================== --- openbios-devel/drivers/obio.c 2006-06-05 19:49:53 UTC (rev 46) +++ openbios-devel/drivers/obio.c 2006-06-05 20:02:44 UTC (rev 47) @@ -286,11 +286,21 @@ push_str("reg"); fword("property");
- fword("finish-device"); - regs = map_io(base + offset, sizeof(*regs)); regs->set = ~SUN4M_INT_MASKALL; regs->cpu_intregs[0].clear = ~0x17fff; + + // is this really correct? + PUSH(regs); + fword("encode-int"); + PUSH(regs); + fword("encode-int"); + fword("encode+"); + push_str("address"); + fword("property"); + + fword("finish-device"); + }