gamecube.c 599 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  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
  8. */
  9. #include <stddef.h>
  10. #include "stdio.h"
  11. #include "types.h"
  12. #include "io.h"
  13. #include "ops.h"
  14. #include "ugecon.h"
  15. BSS_STACK(8192);
  16. void platform_init(unsigned long r3, unsigned long r4, unsigned long r5)
  17. {
  18. u32 heapsize = 16*1024*1024 - (u32)_end;
  19. simple_alloc_init(_end, heapsize, 32, 64);
  20. fdt_init(_dtb_start);
  21. if (ug_probe())
  22. console_ops.write = ug_console_write;
  23. }