From a7bf479c3379ede11d68484274020ee263277441 Mon Sep 17 00:00:00 2001 From: shinyquagsire23 Date: Sun, 31 Jul 2016 15:21:18 -0700 Subject: [PATCH] Add fsDevInit and fsDevExit to crt0.s --- crt/crt0.S | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crt/crt0.S b/crt/crt0.S index a2be2a3..6f80b93 100644 --- a/crt/crt0.S +++ b/crt/crt0.S @@ -2,7 +2,17 @@ .extern exit .global _start _start: + stwu 1, -0x8(1) + stw 3, 0(1) + stw 4, 4(1) + bl fsDevInit + lwz 3, 0(1) + lwz 4, 4(1) bl main + stw 3, 0(1) + bl fsDevExit + lwz 3, 0(1) + addi 1, 1, 0x8 b exit .global __wrap___eabi