summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gsp_phys_booter.c')
-rw-r--r--kernel/gsp_phys_booter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c
index 6db26a4..880299c 100644
--- a/kernel/gsp_phys_booter.c
+++ b/kernel/gsp_phys_booter.c
@@ -16263,7 +16263,9 @@ static int gsp_phys_rmcall_gr_data_map(u64 va, u64 hpa)
pt = gsp_phys_rmcall_gr_data_pt_get(i2, i1, i0);
if (!pt)
return -ENOSPC;
- pte = gsp_phys_rmcall_pte(hpa) | (6ULL << 56);
+ pte = gsp_phys_rmcall_pte(hpa);
+ if (gsp_phys_rmcall_gr_pte_kind_value())
+ pte |= (u64)gsp_phys_rmcall_gr_pte_kind_value() << 56;
put_unaligned_le64(pte, (u8 *)gsp_phys_chunk_page_va(pt, 0) +
(size_t)ip * 8);
dma_wmb();