Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Albert Herranz | b68a24b | 2009-12-12 06:31:36 +0000 | [diff] [blame] | 2 | /* |
| 3 | * arch/powerpc/boot/gamecube.c |
| 4 | * |
| 5 | * Nintendo GameCube bootwrapper support |
| 6 | * Copyright (C) 2004-2009 The GameCube Linux Team |
| 7 | * Copyright (C) 2008,2009 Albert Herranz |
Albert Herranz | b68a24b | 2009-12-12 06:31:36 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <stddef.h> |
| 11 | #include "stdio.h" |
| 12 | #include "types.h" |
| 13 | #include "io.h" |
| 14 | #include "ops.h" |
| 15 | |
| 16 | #include "ugecon.h" |
| 17 | |
| 18 | BSS_STACK(8192); |
| 19 | |
| 20 | void platform_init(unsigned long r3, unsigned long r4, unsigned long r5) |
| 21 | { |
| 22 | u32 heapsize = 16*1024*1024 - (u32)_end; |
| 23 | |
| 24 | simple_alloc_init(_end, heapsize, 32, 64); |
| 25 | fdt_init(_dtb_start); |
| 26 | |
| 27 | if (ug_probe()) |
| 28 | console_ops.write = ug_console_write; |
| 29 | } |
| 30 | |