mirror of
				https://github.com/riscv-software-src/opensbi
				synced 2025-11-04 05:50:22 +00:00 
			
		
		
		
	lib: Return ENOTSUPP incase of invalid SBI function ID
OpenSBI should show error trace only if any valid SBI function does not perform as expected. However, OpenSBI should show notify the caller with a negative error if given SBI function ID is not valid. Signed-off-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
		
							parent
							
								
									312850148a
								
							
						
					
					
						commit
						6c39ea99ee
					
				@ -86,6 +86,8 @@ int sbi_ecall_handler(u32 hartid, ulong mcause,
 | 
			
		||||
		ret = 0;
 | 
			
		||||
		break;
 | 
			
		||||
	default:
 | 
			
		||||
		regs->a0 = SBI_ENOTSUPP;
 | 
			
		||||
		ret = 0;
 | 
			
		||||
		break;
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user