From cdce5416e2e8c2014bf01b96afed476d89de0747 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Mon, 22 Jun 2026 23:26:42 +0000 Subject: [PATCH] stos/amd64: vas: Add helper to get VAS base Signed-off-by: Chloe M. --- paw/stos/head/arch/amd64/vas.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paw/stos/head/arch/amd64/vas.h b/paw/stos/head/arch/amd64/vas.h index d34e756..900e19b 100644 --- a/paw/stos/head/arch/amd64/vas.h +++ b/paw/stos/head/arch/amd64/vas.h @@ -20,4 +20,8 @@ typedef struct { UPTR Cr3; } MMU_VAS; +/* Obtain the VAS base */ +#define VAS_BASE(VAS_P) \ + (VAS_P)->Cr3 + #endif /* !_MACHINE_VAS_H_ */