cpu/x86/smm/smm.ld: Assert that CONFIG_MAX_CPUS <= 4
The SMM_ASEG code only supports up to 4 CPUs, so assert this at buildtime. Change-Id: I8ec803cd1b76f17f4dccd5c573179d542d54c277 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44322 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Patrick Georgi
					
				
			
			
				
	
			
			
			
						parent
						
							a69d2c10a9
						
					
				
				
					commit
					7ac4722a35
				
			@@ -2,6 +2,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* Maximum number of CPUs/cores */
 | 
					/* Maximum number of CPUs/cores */
 | 
				
			||||||
CPUS = 4;
 | 
					CPUS = 4;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					_ = ASSERT(CPUS >= CONFIG_MAX_CPUS, "The ASEG SMM code only supports up to 4 CPUS");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENTRY(smm_handler_start);
 | 
					ENTRY(smm_handler_start);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SECTIONS
 | 
					SECTIONS
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user