aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/serial
diff options
context:
space:
mode:
authorgagachang <vivahavey@gmail.com>2022-07-15 01:29:41 +0800
committerAnup Patel <anup@brainfault.org>2022-07-20 10:05:33 +0530
commit0374ccf3f13e11f98da8158d9a5fa2a8607fe50e (patch)
tree67f14c694088575d62b8f6aab2a3cff0f94df8e2 /lib/utils/serial
parentcaa5eeacacbc935090968e601716f66a6195ceef (diff)
downloadopensbi-0374ccf3f13e11f98da8158d9a5fa2a8607fe50e.zip
opensbi-0374ccf3f13e11f98da8158d9a5fa2a8607fe50e.tar.gz
opensbi-0374ccf3f13e11f98da8158d9a5fa2a8607fe50e.tar.bz2
lib: sbi_hart: Shorten the code to set MPV bit
MPV bit is set when the value of next_virt boolean variable equals true. Since the value of next_virt is either 0 or 1, we can set MPV bit without if-else logic. Signed-off-by: Che-Chia Chang <alvinga@andestech.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/serial')
0 files changed, 0 insertions, 0 deletions