lib: sbi: Narrow vendor extension range
authorAndrew Jones <ajones@ventanamicro.com>
Mon, 15 May 2023 11:12:35 +0000 (13:12 +0200)
committerAnup Patel <anup@brainfault.org>
Sun, 21 May 2023 10:59:46 +0000 (16:29 +0530)
commite307ba7d464a8280e71195d79cc497e86d59b7fd
treeed1ff45e1879250384e3c619e523548849eb5c48
parentf58c14090f79b5d3bde86573c979a019bbd7421d
lib: sbi: Narrow vendor extension range

The vendor extension ID range is large, but at runtime at most
a single ID will be available. Narrow the range in the
register_extensions callback. After narrowing, we no longer
need to check that the extension ID is correct in the other
callbacks, as those callbacks will never be invoked with
anything other than the single ID.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_ecall_vendor.c