You've already forked ultrasm64-2
mirror of
https://github.com/HackerN64/ultrasm64-2.git
synced 2026-01-21 10:38:08 -08:00
Do not load engine code segment if using libdragon IPL3
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user