arch/x86: Fix cpu_cpuid_extended_level() return type
`cpuid_eax()` returns an unsigned integer. Change-Id: Iebb6501130bc9ae333d45ae9d2e10c918245a6d1 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33814 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
		
				
					committed by
					
						
						Martin Roth
					
				
			
			
				
	
			
			
			
						parent
						
							328d2e2a7d
						
					
				
				
					commit
					1c9bd9ce61
				
			@@ -49,7 +49,7 @@ int cpu_have_cpuid(void)
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int cpu_cpuid_extended_level(void)
 | 
					unsigned int cpu_cpuid_extended_level(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return cpuid_eax(0x80000000);
 | 
						return cpuid_eax(0x80000000);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -200,7 +200,7 @@ static inline unsigned int cpuid_edx(unsigned int op)
 | 
				
			|||||||
#define CPUID_CACHE_NO_OF_SETS_MASK 0xffffffff
 | 
					#define CPUID_CACHE_NO_OF_SETS_MASK 0xffffffff
 | 
				
			||||||
#define CPUID_CACHE_NO_OF_SETS(res) CPUID_CACHE(NO_OF_SETS, (res).ecx)
 | 
					#define CPUID_CACHE_NO_OF_SETS(res) CPUID_CACHE(NO_OF_SETS, (res).ecx)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int cpu_cpuid_extended_level(void);
 | 
					unsigned int cpu_cpuid_extended_level(void);
 | 
				
			||||||
int cpu_have_cpuid(void);
 | 
					int cpu_have_cpuid(void);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void smm_init(void);
 | 
					void smm_init(void);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user