stos/amd64: vas: Add helper to get VAS base
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user