[PATCH v2 0/2] Minor fixes for domain context switch

Yu Chien Peter Lin peterlin at andestech.com
Wed Mar 27 20:33:01 PDT 2024


Fix illegal instruction caused by non-existent S-mode CSRs and
race condition when updating domain assigned_harts.

Yu Chien Peter Lin (2):
  sbi: sbi_domain_context: Check privilege spec version before accessing
    S-mode CSRs
  sbi: sbi_domain_context: Add spinlock for updating domain
    assigned_harts

 lib/sbi/sbi_domain_context.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

-- 
2.34.1




More information about the opensbi mailing list