treewide: Replace CONFIG(ARCH_xx) tests
Once we support building stages for different architectures, such CONFIG(ARCH_xx) tests do not evaluate correctly anymore. Change-Id: I599995b3ed5c4dfd578c87067fe8bfc8c75b9d43 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42183 Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		
				
					committed by
					
						
						Angel Pons
					
				
			
			
				
	
			
			
			
						parent
						
							5edbb1c5d9
						
					
				
				
					commit
					7336f97deb
				
			@@ -11,7 +11,7 @@
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include <reg_script.h>
 | 
			
		||||
 | 
			
		||||
#if CONFIG(ARCH_X86)
 | 
			
		||||
#if ENV_X86
 | 
			
		||||
#include <cpu/x86/msr.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@@ -363,7 +363,7 @@ static void reg_script_write_iosf(struct reg_script_context *ctx)
 | 
			
		||||
 | 
			
		||||
static uint64_t reg_script_read_msr(struct reg_script_context *ctx)
 | 
			
		||||
{
 | 
			
		||||
#if CONFIG(ARCH_X86)
 | 
			
		||||
#if ENV_X86
 | 
			
		||||
	const struct reg_script *step = reg_script_get_step(ctx);
 | 
			
		||||
	msr_t msr = rdmsr(step->reg);
 | 
			
		||||
	uint64_t value = msr.hi;
 | 
			
		||||
@@ -375,7 +375,7 @@ static uint64_t reg_script_read_msr(struct reg_script_context *ctx)
 | 
			
		||||
 | 
			
		||||
static void reg_script_write_msr(struct reg_script_context *ctx)
 | 
			
		||||
{
 | 
			
		||||
#if CONFIG(ARCH_X86)
 | 
			
		||||
#if ENV_X86
 | 
			
		||||
	const struct reg_script *step = reg_script_get_step(ctx);
 | 
			
		||||
	msr_t msr;
 | 
			
		||||
	msr.hi = step->value >> 32;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user