vtd: Fix VTD_CTE_SIZE_BITS and VTD_CT_BITS
VTD context table entry is 16 bytes, and there are 256 entries in a context table. The commit is based on PR #185 by laokz Co-authored-by: laokz <laokz@foxmail.com> Signed-off-by: Yanyan Shen <yshen@cog.systems>
This commit is contained in:
parent
30e2568fcf
commit
6be18012c3
1 changed files with 2 additions and 2 deletions
|
|
@ -49,9 +49,9 @@ typedef struct arch_tcb {
|
|||
|
||||
#define VTD_RT_SIZE_BITS 12
|
||||
|
||||
#define VTD_CTE_SIZE_BITS 3
|
||||
#define VTD_CTE_SIZE_BITS 4
|
||||
#define VTD_CTE_PTR(r) ((vtd_cte_t*)(r))
|
||||
#define VTD_CT_BITS 9
|
||||
#define VTD_CT_BITS 8
|
||||
#define VTD_CT_SIZE_BITS (VTD_CT_BITS + VTD_CTE_SIZE_BITS)
|
||||
|
||||
#define VTD_PTE_SIZE_BITS 3
|
||||
|
|
|
|||
Loading…
Reference in a new issue