Author: blueswirl Date: 2008-07-15 16:57:07 +0200 (Tue, 15 Jul 2008) New Revision: 199
Modified: openbios-devel/arch/sparc64/openbios.c Log: Add (bogus) memory nodes
Modified: openbios-devel/arch/sparc64/openbios.c =================================================================== --- openbios-devel/arch/sparc64/openbios.c 2008-07-12 09:41:08 UTC (rev 198) +++ openbios-devel/arch/sparc64/openbios.c 2008-07-15 14:57:07 UTC (rev 199) @@ -210,6 +210,64 @@ //cpu->initfn(); cpu_generic_init(cpu); printk(" x %s\n", cpu->name); + + push_str("/memory"); + fword("find-device"); + + PUSH(0); + fword("encode-int"); + PUSH((int)(nv_info.RAM0_size >> 32)); + fword("encode-int"); + fword("encode+"); + PUSH((int)(nv_info.RAM0_size & 0xffffffff)); + fword("encode-int"); + fword("encode+"); + push_str("reg"); + fword("property"); + + PUSH(0); + fword("encode-int"); + PUSH(0); + fword("encode-int"); + fword("encode+"); + PUSH((unsigned long)&_start - 4096); + fword("encode-int"); + fword("encode+"); + PUSH(0); + fword("encode-int"); + fword("encode+"); + PUSH(va2pa((unsigned long)&_iomem)); + fword("encode-int"); + fword("encode+"); + PUSH(-va2pa((unsigned long)&_iomem)); + fword("encode-int"); + fword("encode+"); + push_str("available"); + fword("property"); + + // XXX + push_str("/virtual-memory"); + fword("find-device"); + + PUSH(0); + fword("encode-int"); + PUSH(0); + fword("encode-int"); + fword("encode+"); + PUSH(0); + fword("encode-int"); + fword("encode+"); + PUSH(0); + fword("encode-int"); + fword("encode+"); + PUSH(0); + fword("encode-int"); + fword("encode+"); + PUSH(0); + fword("encode-int"); + fword("encode+"); + push_str("translations"); + fword("property"); }
void arch_nvram_put(char *data)