3ds: 3ds port sources. First set of two

This commit adds changes to the original rockbox sources.

Note: the port files, functions, folders, etc., will be referred
to as 'ctru' to avoid using the Nintendo name elsewhere.

Change-Id: I0e2d3d4d2a75bd45ea67dc3452eb8d5487cf1f5a
This commit is contained in:
Mauricio Garrido 2025-09-29 16:06:04 -06:00 committed by Solomon Peachy
parent 511a38763b
commit a4de1195cd
25 changed files with 227 additions and 23 deletions

View file

@ -31,6 +31,12 @@ extern unsigned char plugin_end_addr[];
* avoid warning with certain compilers */
int _start(void) {return 0;}
#ifdef CTRU
/* dummy undefined symbols */
void __aeabi_unwind_cpp_pr0(void) {}
struct _reent * _EXFUN(__getreent, (void)) {}
#endif
enum codec_status codec_start(enum codec_entry_call_reason reason)
{
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)

View file

@ -137,6 +137,10 @@ ifeq ($(ARCH),arch_arm)
$(SGCLIB) : CODECFLAGS += -O1
$(VGMLIB) : CODECFLAGS += -O1
$(WAVPACKLIB) : CODECFLAGS += -O3
ifneq (,$(findstring ctru, $(MODELNAME)))
# segfault with -O1
$(SPCLIB) : CODECFLAGS += -O2
endif
else ifeq ($(ARCH),arch_m68k)
$(CODECLIB) : CODECFLAGS += -O2
$(A52LIB) : CODECFLAGS += -O2