Author: stepan
Date: 2006-06-07 11:19:11 +0200 (Wed, 07 Jun 2006)
New Revision: 53
Modified:
openbios-devel/arch/sparc32/tree.fs
openbios-devel/drivers/obio.c
Log:
"fix" some solaris boot errors
Modified: openbios-devel/arch/sparc32/tree.fs
===================================================================
--- openbios-devel/arch/sparc32/tree.fs 2006-06-07 08:49:15 UTC (rev 52)
+++ openbios-devel/arch/sparc32/tree.fs 2006-06-07 09:19:11 UTC (rev 53)
@@ -2,11 +2,17 @@
" /" find-device
2 encode-int " #address-cells" property
1 encode-int " #size-cells" property
+
" SUNW,SPARCstation-5" encode-string " name" property
" SPARCstation 5" encode-string " banner-name" property
" sun4m" encode-string " compatible" property
+ " SUNW,501-3059" encode-string " model" property
+ h# 0a21fe80 encode-int " clock-frequency" property
+
" /obio/zs@0,100000:a" encode-string " stdin-path" property
" /obio/zs@0,100000:a" encode-string " stdout-path" property
+
+
: encode-unit encode-unit-sbus ;
: decode-unit decode-unit-sbus ;
@@ -32,6 +38,9 @@
" iommu" device-name
2 encode-int " #address-cells" property
1 encode-int " #size-cells" property
+ h# 1000 encode-int " page-size" property
+ 0 encode-int " cache-coherence?" property
+ h# ffee8000 encode-int " address" property
h# 0 encode-int h# 10000000 encode-int encode+ h# 00000300 encode-int encode+ " reg" property
external
: open ( cr ." opening iommu" cr) true ;
@@ -46,6 +55,10 @@
" hierarchical" device-type
2 encode-int " #address-cells" property
1 encode-int " #size-cells" property
+ h# 01443fd0 encode-int " clock-frequency" property
+ h# 1c encode-int " slot-address-bits" property
+ h# 3f encode-int " burst-sizes" property
+ h# ffee7000 encode-int " address" property
h# 0 encode-int h# 0 encode-int encode+ h# 0 encode-int encode+ h# 30000000 encode-int encode+ h# 10000000 encode-int encode+
h# 1 encode-int encode+ h# 0 encode-int encode+ h# 0 encode-int encode+ h# 40000000 encode-int encode+ h# 10000000 encode-int encode+
h# 2 encode-int encode+ h# 0 encode-int encode+ h# 0 encode-int encode+ h# 50000000 encode-int encode+ h# 10000000 encode-int encode+
Modified: openbios-devel/drivers/obio.c
===================================================================
--- openbios-devel/drivers/obio.c 2006-06-07 08:49:15 UTC (rev 52)
+++ openbios-devel/drivers/obio.c 2006-06-07 09:19:11 UTC (rev 53)
@@ -154,6 +154,11 @@
nvram = (char *)ob_reg(base, offset, NVRAM_SIZE, 1);
+ PUSH((unsigned long)nvram);
+ fword("encode-int");
+ push_str("address");
+ fword("property");
+
memcpy(&nv_info, nvram, sizeof(nv_info));
printk("Nvram id %s, version %d\n", nv_info.id_string, nv_info.version);
@@ -251,6 +256,22 @@
push_str("icache-associativity");
fword("property");
+
+ PUSH(0x20);
+ fword("encode-int");
+ push_str("ecache-line-size");
+ fword("property");
+
+ PUSH(0x4000);
+ fword("encode-int");
+ push_str("ecache-nlines");
+ fword("property");
+
+ PUSH(1);
+ fword("encode-int");
+ push_str("ecache-associativity");
+ fword("property");
+
PUSH(2);
fword("encode-int");
push_str("ncaches");
@@ -276,6 +297,8 @@
push_str("mid");
fword("property");
+
+
fword("finish-device");
}
}