Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * arch/powerpc/boot/gamecube.c
0004  *
0005  * Nintendo GameCube bootwrapper support
0006  * Copyright (C) 2004-2009 The GameCube Linux Team
0007  * Copyright (C) 2008,2009 Albert Herranz
0008  */
0009 
0010 #include <stddef.h>
0011 #include "stdio.h"
0012 #include "types.h"
0013 #include "io.h"
0014 #include "ops.h"
0015 
0016 #include "ugecon.h"
0017 
0018 BSS_STACK(8192);
0019 
0020 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5)
0021 {
0022     u32 heapsize = 16*1024*1024 - (u32)_end;
0023 
0024     simple_alloc_init(_end, heapsize, 32, 64);
0025     fdt_init(_dtb_start);
0026 
0027     if (ug_probe())
0028         console_ops.write = ug_console_write;
0029 }
0030