Author: blueswirl Date: 2009-12-05 11:13:17 +0100 (Sat, 05 Dec 2009) New Revision: 640
Modified: trunk/openbios-devel/arch/sparc64/lib.c Log: Revert r639, fix mem_claim (Igor Kovalenko) and mem_release
Signed-off-by: igor.v.kovalenko@gmail.com Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/arch/sparc64/lib.c =================================================================== --- trunk/openbios-devel/arch/sparc64/lib.c 2009-12-04 22:01:12 UTC (rev 639) +++ trunk/openbios-devel/arch/sparc64/lib.c 2009-12-05 10:13:17 UTC (rev 640) @@ -261,6 +261,8 @@ size = POP(); virt = POP(); phys = POP(); + phys <<= 32; + phys |= POP();
ofmem_map(phys, virt, size, mode); } @@ -376,8 +378,8 @@
ofmem_map(phys, phys, size, -1);
+ PUSH(phys & 0xffffffffUL); PUSH(phys >> 32); - PUSH(phys & 0xffffffffUL); }
/* ( phys size --- ) */ @@ -388,6 +390,8 @@
size = POP(); phys = POP(); + phys <<= 32; + phys |= POP();
ofmem_release_phys(phys, size); }