1*2ba4573cSJosh Boyer /* 2*2ba4573cSJosh Boyer * Copyright IBM Corporation, 2007 3*2ba4573cSJosh Boyer * Josh Boyer <jwboyer@linux.vnet.ibm.com> 4*2ba4573cSJosh Boyer * 5*2ba4573cSJosh Boyer * Based on ebony wrapper: 6*2ba4573cSJosh Boyer * Copyright 2007 David Gibson, IBM Corporation. 7*2ba4573cSJosh Boyer * 8*2ba4573cSJosh Boyer * This program is free software; you can redistribute it and/or 9*2ba4573cSJosh Boyer * modify it under the terms of the GNU General Public License 10*2ba4573cSJosh Boyer * as published by the Free Software Foundation; version 2 of the License 11*2ba4573cSJosh Boyer */ 12*2ba4573cSJosh Boyer #include "ops.h" 13*2ba4573cSJosh Boyer #include "stdio.h" 14*2ba4573cSJosh Boyer #include "44x.h" 15*2ba4573cSJosh Boyer 16*2ba4573cSJosh Boyer extern char _end[]; 17*2ba4573cSJosh Boyer 18*2ba4573cSJosh Boyer BSS_STACK(4096); 19*2ba4573cSJosh Boyer 20*2ba4573cSJosh Boyer void platform_init(void) 21*2ba4573cSJosh Boyer { 22*2ba4573cSJosh Boyer unsigned long end_of_ram = 0x8000000; 23*2ba4573cSJosh Boyer unsigned long avail_ram = end_of_ram - (unsigned long)_end; 24*2ba4573cSJosh Boyer 25*2ba4573cSJosh Boyer simple_alloc_init(_end, avail_ram, 32, 64); 26*2ba4573cSJosh Boyer bamboo_init(); 27*2ba4573cSJosh Boyer } 28