forked from Mirrors/opensbi
		
	This patch introduces all of the SBIUnit macros and functions which can be used during the test development process. Also, it defines the 'run_all_tests' function, which is being called during the 'init_coldboot' right after printing the boot hart information. Also, add the CONFIG_SBIUNIT Kconfig entry in order to be able to turn the tests on and off. When the CONFIG_SBIUNIT is disabled, the tests and all related code is excluded completely on the compilation stage. Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
		
			
				
	
	
		
			58 lines
		
	
	
		
			932 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			932 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 | 
						|
menu "SBI Extension Support"
 | 
						|
 | 
						|
config SBI_ECALL_TIME
 | 
						|
	bool "Timer extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_RFENCE
 | 
						|
	bool "RFENCE extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_IPI
 | 
						|
	bool "IPI extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_HSM
 | 
						|
	bool "Hart State Management extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_SRST
 | 
						|
	bool "System Reset extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_SUSP
 | 
						|
	bool "System Suspend extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_PMU
 | 
						|
	bool "Performance Monitoring Unit extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_DBCN
 | 
						|
	bool "Debug Console extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_CPPC
 | 
						|
	bool "CPPC extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_LEGACY
 | 
						|
	bool "SBI v0.1 legacy extensions"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_VENDOR
 | 
						|
	bool "Platform-defined vendor extensions"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBI_ECALL_DBTR
 | 
						|
	bool "Debug Trigger Extension"
 | 
						|
	default y
 | 
						|
 | 
						|
config SBIUNIT
 | 
						|
	bool "Enable SBIUNIT tests"
 | 
						|
	default n
 | 
						|
 | 
						|
endmenu
 |