mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	board_f: Don't require CONFIG_SYS_MONITOR_BASE
Allow this to be unset, such that gd->mon_len is invalid. This seems to be what the sh architecture does. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							parent
							
								
									89b199c3d4
								
							
						
					
					
						commit
						b0b359536e
					
				@ -274,7 +274,7 @@ static int setup_mon_len(void)
 | 
			
		||||
	gd->mon_len = CONFIG_SYS_MONITOR_LEN;
 | 
			
		||||
#elif defined(CONFIG_NDS32)
 | 
			
		||||
	gd->mon_len = (ulong)(&__bss_end) - (ulong)(&_start);
 | 
			
		||||
#else
 | 
			
		||||
#elif defined(CONFIG_SYS_MONITOR_BASE)
 | 
			
		||||
	/* TODO: use (ulong)&__bss_end - (ulong)&__text_start; ? */
 | 
			
		||||
	gd->mon_len = (ulong)&__bss_end - CONFIG_SYS_MONITOR_BASE;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user