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:
Yanyan Shen 2020-06-23 09:04:38 +10:00
parent 30e2568fcf
commit 6be18012c3

View file

@ -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