12ba4573cSJosh Boyer /*
22ba4573cSJosh Boyer  * Copyright IBM Corporation, 2007
32ba4573cSJosh Boyer  * Josh Boyer <jwboyer@linux.vnet.ibm.com>
42ba4573cSJosh Boyer  *
52ba4573cSJosh Boyer  * Based on ebony wrapper:
62ba4573cSJosh Boyer  * Copyright 2007 David Gibson, IBM Corporation.
72ba4573cSJosh Boyer  *
82ba4573cSJosh Boyer  * This program is free software; you can redistribute it and/or
92ba4573cSJosh Boyer  * modify it under the terms of the GNU General Public License
102ba4573cSJosh Boyer  * as published by the Free Software Foundation; version 2 of the License
112ba4573cSJosh Boyer  */
122ba4573cSJosh Boyer #include "ops.h"
132ba4573cSJosh Boyer #include "stdio.h"
142ba4573cSJosh Boyer #include "44x.h"
152ba4573cSJosh Boyer 
162ba4573cSJosh Boyer extern char _end[];
172ba4573cSJosh Boyer 
182ba4573cSJosh Boyer BSS_STACK(4096);
192ba4573cSJosh Boyer 
202ba4573cSJosh Boyer void platform_init(void)
212ba4573cSJosh Boyer {
222ba4573cSJosh Boyer 	unsigned long end_of_ram = 0x8000000;
232ba4573cSJosh Boyer 	unsigned long avail_ram = end_of_ram - (unsigned long)_end;
242ba4573cSJosh Boyer 
252ba4573cSJosh Boyer 	simple_alloc_init(_end, avail_ram, 32, 64);
262ba4573cSJosh Boyer 	bamboo_init();
272ba4573cSJosh Boyer }
28