lib: sbi: Align SBI vendor extension id with mvendorid CSR
authorAnup Patel <apatel@ventanamicro.com>
Mon, 13 Feb 2023 04:50:30 +0000 (10:20 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 27 Feb 2023 05:56:35 +0000 (11:26 +0530)
commit81adc62f45c0baf13112358164a327197e70a7af
tree37afd08b27918809a2e3ee7090ba3108b45adc54
parent30ea8069f4c704e67017215f90f74b8588ee9bdf
lib: sbi: Align SBI vendor extension id with mvendorid CSR

As-per the SBI specification, the lower 24bits of the SBI vendor
extension id is same as lower 24bits of the mvendorid CSR.

We update the SBI vendor extension id checking based on above.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
include/sbi/sbi_platform.h
lib/sbi/sbi_ecall_vendor.c
platform/generic/include/platform_override.h
platform/generic/platform.c