From 578181ace1374e72cb93d69d2c201ce7a0a2300c Mon Sep 17 00:00:00 2001 From: spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> Date: Mon, 27 Jun 2022 22:19:18 +0200 Subject: Add 8 MB RAM support and customizable _start stub --- libpsn00b/libc/_start.s | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libpsn00b/libc/_start.s (limited to 'libpsn00b/libc/_start.s') diff --git a/libpsn00b/libc/_start.s b/libpsn00b/libc/_start.s new file mode 100644 index 0000000..56075c8 --- /dev/null +++ b/libpsn00b/libc/_start.s @@ -0,0 +1,18 @@ +# PSn00bSDK _start() trampoline +# (C) 2022 spicyjpeg - MPL licensed +# +# This file provides a weak function that can be easily overridden to e.g. set +# $sp or perform additional initialization before the "real" _start() +# (_start_inner()) is called. + +.set noreorder +.section .text + +.global _start +.type _start, @function +.weak _start +_start: + la $gp, _gp + + j _start_inner + nop -- cgit v1.2.3