src: Use CRx_TYPE type for CRx
Change-Id: If50d9218119d5446d0ce98b8a9297b23bae65c72 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33816 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		
				
					committed by
					
						
						Martin Roth
					
				
			
			
				
	
			
			
			
						parent
						
							7803e487bd
						
					
				
				
					commit
					63f98f2304
				
			@@ -67,7 +67,7 @@ static inline void clflush(void *addr)
 | 
			
		||||
 */
 | 
			
		||||
static __always_inline void enable_cache(void)
 | 
			
		||||
{
 | 
			
		||||
	unsigned long cr0;
 | 
			
		||||
	CRx_TYPE cr0;
 | 
			
		||||
	cr0 = read_cr0();
 | 
			
		||||
	cr0 &= ~(CR0_CD | CR0_NW);
 | 
			
		||||
	write_cr0(cr0);
 | 
			
		||||
@@ -76,7 +76,7 @@ static __always_inline void enable_cache(void)
 | 
			
		||||
static __always_inline void disable_cache(void)
 | 
			
		||||
{
 | 
			
		||||
	/* Disable and write back the cache */
 | 
			
		||||
	unsigned long cr0;
 | 
			
		||||
	CRx_TYPE cr0;
 | 
			
		||||
	cr0 = read_cr0();
 | 
			
		||||
	cr0 |= CR0_CD;
 | 
			
		||||
	wbinvd();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user