From ae2fa2fa602bce4b9a59a78d530e9db5dc9f8d2f Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 18 Oct 2019 21:30:26 -0700 Subject: [PATCH] boot: reduce memory footprint --- stratosphere/boot/source/boot_main.cpp | 4 ++-- stratosphere/boot/source/boot_repair_boot_images.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stratosphere/boot/source/boot_main.cpp b/stratosphere/boot/source/boot_main.cpp index 68be3ca9b..23111d5df 100644 --- a/stratosphere/boot/source/boot_main.cpp +++ b/stratosphere/boot/source/boot_main.cpp @@ -46,8 +46,8 @@ extern "C" { u32 __nx_applet_type = AppletType_None; - /* TODO: Evaluate to what extent this can be reduced. */ - #define INNER_HEAP_SIZE 0x200000 + /* TODO: Evaluate to what extent this can be reduced further. */ + #define INNER_HEAP_SIZE 0x20000 size_t nx_inner_heap_size = INNER_HEAP_SIZE; char nx_inner_heap[INNER_HEAP_SIZE]; diff --git a/stratosphere/boot/source/boot_repair_boot_images.cpp b/stratosphere/boot/source/boot_repair_boot_images.cpp index 2475d2ace..7eba04b4d 100644 --- a/stratosphere/boot/source/boot_repair_boot_images.cpp +++ b/stratosphere/boot/source/boot_repair_boot_images.cpp @@ -25,7 +25,7 @@ namespace sts::boot { namespace { /* Globals. */ - u8 __attribute__((aligned(0x1000))) g_boot_image_work_buffer[0x10000]; + alignas(0x1000) u8 g_boot_image_work_buffer[0x10000]; }