Files
2026-06-22 23:26:42 +00:00

28 lines
444 B
C

/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: MD virtual address space
* Author: Chloe M.
*/
#ifndef _MACHINE_VAS_H_
#define _MACHINE_VAS_H_ 1
#include <stdef.h>
/*
* Represents a virtual address space
*
* @Cr3: Control register 3 value
*/
typedef struct {
UPTR Cr3;
} MMU_VAS;
/* Obtain the VAS base */
#define VAS_BASE(VAS_P) \
(VAS_P)->Cr3
#endif /* !_MACHINE_VAS_H_ */