diff options
author | Clément Léger <cleger@rivosinc.com> | 2024-10-18 10:40:03 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-10-25 23:53:18 +0530 |
commit | 80656bdb1daf380b5562cba11f43754fe916d631 (patch) | |
tree | a52b3c0f9eafc390c07a76c9d783aa5400fdcffb /platform/generic | |
parent | daa282573ffac0f295de7631c98840668f20a568 (diff) | |
download | opensbi-80656bdb1daf380b5562cba11f43754fe916d631.zip opensbi-80656bdb1daf380b5562cba11f43754fe916d631.tar.gz opensbi-80656bdb1daf380b5562cba11f43754fe916d631.tar.bz2 |
lib: sbi: factorize previous mode computation
Previous privilege mode retrieval from mstatus is done at different
places, factorize it rather than copy/pasting it again.
Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Diffstat (limited to 'platform/generic')
0 files changed, 0 insertions, 0 deletions