Do not load engine code segment if using libdragon IPL3

This commit is contained in:
a
2025-06-22 22:24:13 -04:00
parent 8d971cd81d
commit 9dd1e33ff1
3 changed files with 22 additions and 2 deletions

View File

@@ -334,7 +334,9 @@ extern void crash_screen_init(void);
void thread3_main(UNUSED void *arg) {
setup_mesg_queues();
alloc_pool();
#ifndef LIBDRAGON_IPL3
load_engine_code_segment();
#endif
crash_screen_init();

View File

@@ -370,6 +370,7 @@ void *load_segment_decompress_heap(u32 segment, u8 *srcStart, u8 *srcEnd) {
return gDecompressionHeap;
}
#ifndef LIBDRAGON_IPL3
void load_engine_code_segment(void) {
void *startAddr = (void *) _engineSegmentStart;
u32 totalSize = _engineSegmentEnd - _engineSegmentStart;
@@ -382,6 +383,7 @@ void load_engine_code_segment(void) {
osInvalDCache(startAddr, totalSize);
}
#endif
#endif
/**
* Allocate an allocation-only pool from the main pool. This pool doesn't