From 7b6df8c2f7495d11eec330983a84a1eb810f16d5 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 19 Jan 2021 05:23:02 -0800 Subject: [PATCH] boot: remove references to memalign/malloc --- stratosphere/boot/source/boot_main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stratosphere/boot/source/boot_main.cpp b/stratosphere/boot/source/boot_main.cpp index d7e6c3c87..677bbf646 100644 --- a/stratosphere/boot/source/boot_main.cpp +++ b/stratosphere/boot/source/boot_main.cpp @@ -48,6 +48,9 @@ extern "C" { alignas(16) u8 __nx_exception_stack[ams::os::MemoryPageSize]; u64 __nx_exception_stack_size = sizeof(__nx_exception_stack); void __libnx_exception_handler(ThreadExceptionDump *ctx); + + void *__libnx_thread_alloc(size_t size); + void __libnx_thread_free(void *mem); } namespace ams { @@ -157,6 +160,14 @@ namespace ams { } +void *__libnx_thread_alloc(size_t size) { + AMS_ABORT("__libnx_thread_alloc was called"); +} + +void __libnx_thread_free(void *mem) { + AMS_ABORT("__libnx_thread_free was called"); +} + void *operator new(size_t size) { return Allocate(size); }