2 * Copyright 2007 IBM Corporation
4 * Stephen Winiecki <stevewin@us.ibm.com>
5 * Josh Boyer <jwboyer@linux.vnet.ibm.com>
7 * Based on earlier code:
8 * Copyright (C) Paul Mackerras 1997.
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * version 2 as published by the Free Software Foundation.
26 extern char _dtb_start[];
27 extern char _dtb_end[];
31 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5)
33 u32 heapsize = 0x8000000 - (u32)_end; /* 128M */
35 simple_alloc_init(_end, heapsize, 32, 64);
36 ft_init(_dtb_start, 0, 4);
37 serial_console_init();