aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/serial
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-12-29 13:51:06 +0530
committerAnup Patel <anup@brainfault.org>2021-01-07 09:53:19 +0530
commit12394a269b8b60e2d37b56afb2fa39fde6a3a4b8 (patch)
tree39e2d783172cf53f62c368d1daa0cfcc0d3502db /lib/utils/serial
parentb7df5e4392d34d8b8d5290d5b857676e672d4c96 (diff)
downloadopensbi-12394a269b8b60e2d37b56afb2fa39fde6a3a4b8.zip
opensbi-12394a269b8b60e2d37b56afb2fa39fde6a3a4b8.tar.gz
opensbi-12394a269b8b60e2d37b56afb2fa39fde6a3a4b8.tar.bz2
lib: sbi: Allow custom local TLB flush function
Currently, we have fixed TLB flush types supported by the remote TLB library. This approach is not flexible and does not allow custom local TLB flush function. For example, after updating PMP entries on a set of HARTs at runtime, we have to flush TLB on these HARTs as well. To support custom local TLB flush function, we replace the "type" field of "struct sbi_tlb_info" with a local TLB flush function pointer. We also provide definitions of standard TLB flush operations (such as fence_i, sfence.vma, hfence.vvma, hfence.gvma, etc). Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/utils/serial')
0 files changed, 0 insertions, 0 deletions