mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
lib: Introduce a tlb info type.
Add a tlb info to distinguish between different type of tlb flush request pending. Signed-off-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -18,6 +18,12 @@
|
|||||||
#define SBI_IPI_EVENT_SFENCE_VMA_ASID 0x8
|
#define SBI_IPI_EVENT_SFENCE_VMA_ASID 0x8
|
||||||
#define SBI_IPI_EVENT_HALT 0x10
|
#define SBI_IPI_EVENT_HALT 0x10
|
||||||
|
|
||||||
|
enum sbi_tlb_info_types {
|
||||||
|
SBI_TLB_FLUSH_VMA,
|
||||||
|
SBI_TLB_FLUSH_VMA_ASID,
|
||||||
|
SBI_TLB_FLUSH_VMA_VMID
|
||||||
|
};
|
||||||
|
|
||||||
struct sbi_scratch;
|
struct sbi_scratch;
|
||||||
|
|
||||||
struct sbi_ipi_data {
|
struct sbi_ipi_data {
|
||||||
@@ -28,6 +34,7 @@ struct sbi_tlb_info {
|
|||||||
unsigned long start;
|
unsigned long start;
|
||||||
unsigned long size;
|
unsigned long size;
|
||||||
unsigned long asid;
|
unsigned long asid;
|
||||||
|
unsigned long type;
|
||||||
};
|
};
|
||||||
|
|
||||||
int sbi_ipi_send_many(struct sbi_scratch *scratch,
|
int sbi_ipi_send_many(struct sbi_scratch *scratch,
|
||||||
|
Reference in New Issue
Block a user