Author: blueswirl Date: 2008-08-02 12:51:51 +0200 (Sat, 02 Aug 2008) New Revision: 216
Modified: openbios-devel/arch/sparc64/openbios.c Log: Fix wrong translations
Modified: openbios-devel/arch/sparc64/openbios.c =================================================================== --- openbios-devel/arch/sparc64/openbios.c 2008-07-22 07:07:37 UTC (rev 215) +++ openbios-devel/arch/sparc64/openbios.c 2008-08-02 10:51:51 UTC (rev 216) @@ -512,16 +512,16 @@ push_str("/virtual-memory"); fword("find-device");
- // 0 to va2pa(_start): 1:1 + // 0 to 16M: 1:1 PUSH(0); fword("encode-int"); PUSH(0); fword("encode-int"); fword("encode+"); - PUSH((va2pa((unsigned long)&_data) - 8192) >> 32); + PUSH(0); fword("encode-int"); fword("encode+"); - PUSH((va2pa((unsigned long)&_data) - 8192) & 0xffffffff); + PUSH(16 * 1024 * 1024); fword("encode-int"); fword("encode+"); PUSH(0x80000000); @@ -555,7 +555,7 @@ PUSH(0); fword("encode-int"); fword("encode+"); - PUSH((unsigned long)&_start); + PUSH((unsigned long)&_data); fword("encode-int"); fword("encode+"); PUSH(0);