Commit a0c88ddb authored by Xiang Wang's avatar Xiang Wang Committed by Anup Patel
Browse files

lib: Fix sbi_ecall_register_extension to prevent extension IDs overlap



The original code does not prevent the following scenarios:
> sbi_ecall_register_extension(ext1); /* extension id (70-80) */
> sbi_ecall_register_extension(ext2); /* extension id (50-100) */

Signed-off-by: default avatarXiang Wang <merle@hardenedlinux.org>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
parent 315a8771
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment