[OpenBIOS] [commit] r980 - trunk/openbios-devel/arch/ppc/qemu
repository service
svn at openbios.org
Sun Dec 5 15:16:13 CET 2010
Author: afaerber
Date: Sun Dec 5 15:16:13 2010
New Revision: 980
URL: http://tracker.coreboot.org/trac/openbios/changeset/980
Log:
ppc: Simplify get_ram_bottom()
Avoid a cast by adjusting the define.
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
Modified:
trunk/openbios-devel/arch/ppc/qemu/ofmem.c
Modified: trunk/openbios-devel/arch/ppc/qemu/ofmem.c
==============================================================================
--- trunk/openbios-devel/arch/ppc/qemu/ofmem.c Sun Dec 5 02:15:57 2010 (r979)
+++ trunk/openbios-devel/arch/ppc/qemu/ofmem.c Sun Dec 5 15:16:13 2010 (r980)
@@ -44,7 +44,7 @@
*
*/
-#define FREE_BASE 0x00004000
+#define FREE_BASE 0x00004000UL
#define OF_CODE_START 0xfff00000UL
#define OF_CODE_SIZE 0x00100000
#define IO_BASE 0x80000000
@@ -82,7 +82,7 @@
unsigned long
get_ram_bottom(void)
{
- return (unsigned long)FREE_BASE;
+ return FREE_BASE;
}
static ucell get_heap_top(void)
More information about the OpenBIOS
mailing list