replaced SEG_POOL_END in main_pool_init with a dynamic end that depends on POOL_SIZE instead

This commit is contained in:
farisawan-2000
2020-11-05 14:22:57 -05:00
parent b84d4ea715
commit 3f8f49c726

View File

@@ -139,7 +139,7 @@ void setup_mesg_queues(void) {
void alloc_pool(void) {
void *start = (void *) SEG_POOL_START;
void *end = (void *) SEG_POOL_END;
void *end = (void *) (SEG_POOL_START + POOL_SIZE);
main_pool_init(start, end);
gEffectsMemoryPool = mem_pool_init(0x4000, MEMORY_POOL_LEFT);