stos/amd64: vas: Add helper to get VAS base

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 23:26:42 +00:00
parent 5b30974cb0
commit cdce5416e2
+4
View File
@@ -20,4 +20,8 @@ typedef struct {
UPTR Cr3; UPTR Cr3;
} MMU_VAS; } MMU_VAS;
/* Obtain the VAS base */
#define VAS_BASE(VAS_P) \
(VAS_P)->Cr3
#endif /* !_MACHINE_VAS_H_ */ #endif /* !_MACHINE_VAS_H_ */