mirror of https://github.com/zeldaret/oot.git
				
				
				
			Small cleanup of cleararena (bootclear) (#1999)
* cleararena use boot end * cleararena -> bootclear
This commit is contained in:
		
							parent
							
								
									e1dc4cf448
								
							
						
					
					
						commit
						2361a33307
					
				| 
						 | 
					@ -7,15 +7,15 @@ STACK(sIdleThreadStack, 0x400);
 | 
				
			||||||
StackEntry sIdleThreadInfo;
 | 
					StackEntry sIdleThreadInfo;
 | 
				
			||||||
STACK(sBootThreadStack, BOOT_STACK_SIZE);
 | 
					STACK(sBootThreadStack, BOOT_STACK_SIZE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void cleararena(void) {
 | 
					void bootclear(void) {
 | 
				
			||||||
    bzero(_dmadataSegmentStart, osMemSize - OS_K0_TO_PHYSICAL(_dmadataSegmentStart));
 | 
					    bzero(_bootSegmentEnd, osMemSize - OS_K0_TO_PHYSICAL(_bootSegmentEnd));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void bootproc(void) {
 | 
					void bootproc(void) {
 | 
				
			||||||
    StackCheck_Init(&sBootThreadInfo, sBootThreadStack, STACK_TOP(sBootThreadStack), 0, -1, "boot");
 | 
					    StackCheck_Init(&sBootThreadInfo, sBootThreadStack, STACK_TOP(sBootThreadStack), 0, -1, "boot");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    osMemSize = osGetMemSize();
 | 
					    osMemSize = osGetMemSize();
 | 
				
			||||||
    cleararena();
 | 
					    bootclear();
 | 
				
			||||||
    __osInitialize_common();
 | 
					    __osInitialize_common();
 | 
				
			||||||
    __osInitialize_autodetect();
 | 
					    __osInitialize_autodetect();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue